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