Why Does Clicking on Applescript Notifications Open the AppleScript Editor?
I'm experimenting with AppleScript and with Python. But the big issue i'm having now is not about Python specifically. The end goal is to be able to write Python scripts that use AppleScript features. While doing this, I'm testing in AppleScript, from the command line, and in IDLE.
If I type:
osascript -e 'display notification "Lorem ipsum dolor sit amet"'
in bash in the Terminal and run it, I get a Growl notification, but when I click on it, the Applescript editor opens up. If it's open but not active, it becomes the active application. If I create the following AppleScript file:
on run display notification "This is a notice." end run
And run it with osascript from the Terminal, when I click the Growl notification, the Script Editor opens. And the same thing happens when I use osascript in Python to run the same command.
In other words, if I use AppleScript to post a Growl notification, it always opens up the AppleScript Editor.
(I've been trying a number of sample scripts online and it appears that, at some point, maybe with Mavericks, a lot of rules for Applescript and Growl changed, since many scripts, when cut and pasted and saved, will no longer work.)
(I'm on OS X 10.9.4.)
Why does the Script Editor open? And what can I do to stop this?
(I've also asked this on a StackExchange site here: http://superuser.com/questions/782814/why-does-clicking-on-applescript-notificat ions-open-the-applescript-editor)