Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create new outgoing message with applescript in Microsoft Outlook

I'm trying to create a new outgoing message with Microsoft Outlook 2011 for mac, using AppleScript. The following example worked in 10.6.8:

tell application "Microsoft Outlook"
    set newMessage to make new outgoing message with properties {subject:"Hooray for automation"}
    make new recipient at newMessage with properties {email address:{name:"Jim Shank", address:"[email protected]"}}
    open newMessage
end tell

On Lion I'm getting the following error:

Microsoft Outlook got an error: Can’t make class outgoing message.

Does anybody have a clue what went wrong there?

I'm using offline Outlook.

like image 860
Nava Carmon Avatar asked Mar 01 '12 18:03

Nava Carmon


1 Answers

Apparently, I'm using a trial version, that has expired. With registered version this script works perfectly. Boo Outlook...I spent on looking into this a couple of hours!

like image 69
Nava Carmon Avatar answered Nov 15 '22 15:11

Nava Carmon