Re: Check if app exists
Re: Check if app exists
- Subject: Re: Check if app exists
- From: Tim Mansour <email@hidden>
- Date: Fri, 21 Sep 2007 15:33:57 +1000
On 21/09/2007, at 10:48 am, Jeremy Matthews wrote:
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?
I'm currently doing it this way in one of my scripts Jeremy
(admittedly, not an AS Studio solution):
property growlHelper :
"Library:PreferencePanes:Growl.prefPane:Contents:Resources:GrowlHelperAp
p.app"
set userPath to path to home folder as Unicode text
set localPath to path to startup disk as Unicode text
tell application "System Events" to set growlExists to {exists file
(userPath & growlHelper), exists file (localPath & growlHelper)}
if growlExists contains true then
-- insert code
end if
--
Tim Mansour <email@hidden>
_______________________________________________
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