Re: Check if app exists
Re: Check if app exists
- Subject: Re: Check if app exists
- From: Emmanuel <email@hidden>
- Date: Thu, 20 Sep 2007 17:19:43 +0200
Title: Re: Check if app exists
At 11:11 AM -0400 9/20/07, Kevin Muldoon wrote:
-- if by 'exists' you mean is it
active, then this will do...
my
checkAppExists("Finder")
on
checkAppExists(str)
tell application "System
Events" to get name of every process
if result contains str then return true
return false
end
checkAppExists
-- if you mean if it's installed on
the computer but not launched, then I'd like to know that answer as
well.
Not too thorough, just test for a folder or file with
"GrowHelperApp" in its name in the /Applications
folder:
if (do shell script "ls /Applications") contains
"GrowHelperApp" then etc.
Emmanuel
On Sep 20, 2007, at 10:36 AM, Jeremy
Matthews wrote:
I have the following basic
code:
tell application
"Finder"
if application
"GrowlHelperApp" exists
then
set
growlexists to
"true"
end if
end tell
If the app DOESN'T exist...then it
continually prompts you to find/choose the application. Is there a way
to gain silent approval or failure of this possibility without getting
that prompt?
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:
mac.com
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
--
Kevin Muldoon, Owner
TrueBlueDot
- Fine Art Printing
New Haven, CT
06511
email@hidden
www.truebluedot.com
"Our pigment
meets your imagination"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list
(email@hidden)
Help/Unsubscribe/Update your Subscription:
>40compuserve.com
Archives: http://lists.apple.com/archives/applescript-users
This email sent to 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