I try to make new message in outlook 2011. OSX 10.9.1 Mavericks
tell application “Microsoft Outlook”
set newMessage to make new outgoing message with properties {subject:fileName}
tell newMessage
make new attachment with properties {file:theAttachment}
end tell
open newMessage
end tell
and Outlook got an error “ can’t make class “class outm”
i f modify my script
tell application “Microsoft Outlook”
try
set newMessage to make new outgoing message with properties {subject:fileName}
on error the error_message number the error_number
display dialog "Error in Make new message: " & the error_number & ". " & the error_message ¬
buttons {buttonCancel} default button 1 with icon stop with title myTitle
end try
tell newMessage
make new attachment with properties {file:theAttachment}
end tell
open newMessage
end tell
Outlook got an error “ can’t make class outgoing message
I move the files com.microsoft.office.licensing.plist from /library/preferences in to the trash, then relaunch Outlook 2011. Script worked well. Then i put com.microsoft.office.licensing.plist back from trash. All work well…
What was that garbage?
Model: iMac
Browser: Safari 537.73.11
Operating System: Mac OS X (10.8)
Ilexxey, Thanks SO MUCH for posting this. I am running from a backup drive while my main unit is being repaired. I kept getting the same error for all of my scripts that try to create ANY object. I was at my wits end trying to figure out what was going on when I ran across your post. That fixed it for me too. VERY strange situation.
I find that every time I restart, I have to move the license file out and back in to Library/Preferences. Maybe has to do with running from an external drive. Hopefully the problem goes away when I’m back to my normal machine.