Applescript compile fails with "Expected end of line, etc. but found identifier"

Hi,


I've written my first applescript to move messages in Micorosoft Outlook to a specific folder. It is based on existing scripts I found on the internet. However my version keeps failing to compile with the error "Expected end of line, etc. but found identifier". I tried the exact same script on another Mac and it works. I created a very simple version of the script to show the error. All I am trying to do is get the current selected messages so I can move them:


on run {}

tell application "Microsoft Outlook"

set selectedMessages to current messages

end tell

end run


and I still get the same errors on the word "messages" above.


MAC is running OSX 10.9.4

Microsoft Outlook for Mac 2011 - version 14.4.3 (140616)


Since the script works on other computers the only thing I can assume is something wrong with the setup.


Any help is greatly appreciated.

- Ben


User uploaded file

Posted on Aug 22, 2014 7:00 PM

Reply
17 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Applescript compile fails with "Expected end of line, etc. but found identifier"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.