• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detecting Applescript and SKYPE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Detecting Applescript and SKYPE
      • From: Sander Tekelenburg <email@hidden>
References: 
 >Detecting Applescript and SKYPE (From: Don Wieland <email@hidden>)
 >Re: Detecting Applescript and SKYPE (From: Peter Baxter <email@hidden>)

  • Prev by Date: Re: Detecting Applescript and SKYPE
  • Next by Date: Re: Detecting Applescript and SKYPE
  • Previous by thread: Re: Detecting Applescript and SKYPE
  • Next by thread: Re: Detecting Applescript and SKYPE
  • Index(es):
    • Date
    • Thread