View Single Post
PS OGfl shape action code assumes the application context as given, so within your script .... end script bracketing of the source code (for the purposes of run script) you may also need to explicitly add tell application ... end tell bracketing.

(See the OmniFocus example above for the details of escaping the double quotes in the application name within a script string which is to be evaluated at run-time).