Re: Check if app exists
Re: Check if app exists
- Subject: Re: Check if app exists
- From: Jeremy Matthews <email@hidden>
- Date: Thu, 20 Sep 2007 20:48:07 -0400
Hmmm...I tried a variety of suggestions and combinations, and many work well in Script Editor, but not AppleScript Studio (which the code was just moved to). I'd prefer to avoid cross-posting (especially if its not necessary), but has anyone else run into this?
Right now, the temporary script (which works) is like this:
global growlexists
on growlcheck() try if result of (do shell script "ls /Library/PreferencePanes/Growl.prefPane/") = "Contents" then set growlexists to true else set growlexists to false end if on error set growlexists to false end try end growlcheck
on runapp() my growlcheck() if growlexists is true then display dialog "growl installed" --run growl example code here else display dialog "growl not installed" end if end runapp
my runapp()
However, when I ADD the growl example code (link to sample code noted in the script above), it still prompts the user to find the application.
Ideas? Thanks, j |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden