Re: Detecting Applescript and SKYPE
Re: Detecting Applescript and SKYPE
- Subject: Re: Detecting Applescript and SKYPE
- From: Michelle Steiner <email@hidden>
- Date: Fri, 10 Oct 2008 09:29:28 -0700
On Oct 10, 2008, at 9:12 AM, Peter Baxter wrote:
To detect if a particular application is installed, a script like
the following will do:
tell application "Finder"
try
if exists alias "Macintosh HD:Applications:SKYPE.app:" then
display dialog "Boo"
else
display dialog "Boo Hoo"
end if
end try
end tell
To make it more portable, and to take into account that it might be in
the user's applications folder, try this:
tell application "Finder"
if exists alias "skype.app" in (path to applications folder) then
display dialog "Boo"
else if exists alias "skype.app" in (path to applications folder from
user domain) then
display dialog "Boo"
else
display dialog "Boo hoo"
end if
end tell
-- Michelle
--
The difference between running and jogging is an entry form.
_______________________________________________
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