I would like for this script to ignore and not show the “Choose Application” dialog if the GrowlHelperApp is not found on the system.
Here is the code that I am using:
set GrowlIsRunning to check_Application_exists("com.Growl.GrowlHelperApp")
on check_Application_exists(theApp)
try
tell application "Finder" to application file id theApp
return true
on error
return false
end try
end check_Application_exists
if GrowlIsRunning is true then
tell application "GrowlHelperApp"
return "it exists"
end tell
else
return "no good"
end if
I run into the Choose Application window. When I run it and when I try to compile the code. Please advise. Thank you!
~JL