I followed the instructions on how to register, notify, *and* how to check if Growl has been installed to avoid the "Choose application" popup (note at bottom of page).
But, when I open the script in AppleScript Editor on a system where Growl was uninstalled, I get the "Where is GrowlHelperApp.app?" popup.
So, it seems the "tell application GrowlHelperApp" commands are verified when the script is opened, regardless of them actually being used or not at runtime.
Also: when I cancel out of these popups (and can run the script), the Growl related lines in the AppleScript programme are malformed.
Any suggestions?
---------------------------------------
on prepare_growl()
if (use_growl) then
tell application "System Events" to set use_growl to exists application process "GrowlHelperApp"
if (not use_growl) then return
try
tell application "GrowlHelperApp"
set the allNotificationsList to {"Summary of results"}
set the enabledNotificationsList to allNotificationsList
register as application ¬
"My application" all notifications allNotificationsList ¬
default notifications enabledNotificationsList
end tell
end try
end if
end prepare_growl
---------------------------------------
after opening the script on a system where Growl was uninstalled, the Growl related messages in the script are changed, e.g.:
---------------------------------------
tell application "GrowlHelperApp.app"
«event notifygr» given «class name»:¬
"Summary of results", «class titl»:¬
desc, «class desc»:¬
msg, «class appl»:"My application"
end tell
----------------------------------------