I recently upgraded to Mavericks and am experiencing problems with Applescript-based workflows that were working fine previously. In attempting to debug the workflows, it seems that even basic RunNSAppleScript actions fail for scripts that work just fine in Script Editor.
For instance, I tried a toy Keyword to Applescript workflow, with or without keyword arguments:
on alfred_script(q)
tell application “iTerm”
activate
end tell
end alfred_script
fails with the following output in Console:
13/12/2013 11:37:25.761 Alfred 2[381]: [ERROR] AppleScript Error: {
NSAppleScriptErrorBriefMessage = "Expected expression, property or key form, etc. but found unknown token.";
NSAppleScriptErrorMessage = "Expected expression, property or key form, etc. but found unknown token.";
NSAppleScriptErrorNumber = "-2741";
NSAppleScriptErrorRange = "NSRange: {38, 1}";
}
Other workflows, e.g. passing calendar sentences to Fantastical, continue to work fine.
I'm running Alfred v2.1.1 (227) on Mac OSX Mavericks 10.9 build 13A603.
Any suggestions on how to investigate this further?
Thanks
Tim