You
do have an action selected when you run it, right?
For troubleshooting, I would suggest opening the Script Editor (double-clicking on the script file should do that) and using the Run button there to invoke the script. If you have the Event Log History window open when you run the script, you can see the output, which will look something like this:
Code:
tell application "OmniFocus"
get every selected tree of content of document window 1 of document 1 whose index = 1
{tree 3 of tree 243 of content of document window id 613 of document id "n3_4uuu0hr2"}
get value of tree 3 of tree 243 of content of document window id 613 of document id "n3_4uuu0hr2"
task id "nRjKLG1N3U7" of document id "n3_4uuu0hr2"
get name of task id "nRjKLG1N3U7" of document id "n3_4uuu0hr2"
"RE: Book Fair contest"
end tell
tell application "GrowlHelperApp"
register as application "Curt's Scripts" all notifications {"Script Completed", "Script Began", "Sticky Notifications"} default notifications {"Script Completed"} icon of application "OmniFocus.app"
notify with name "Sticky Notifications" title "What am I doing?" application name "Curt's Scripts" description "RE: Book Fair contest"
end tell
Posting that here might give us a clue as to what is going wrong.