• 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: Get path to app without launching it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get path to app without launching it


  • Subject: Re: Get path to app without launching it
  • From: Skeeve <email@hidden>
  • Date: Sat, 30 Aug 2008 23:19:22 +0200

You can "do shell script" and try to "find" or "locate" the application.

set safari to posix file (do shell script "locate Safari.app | head -1")

set safari to posix file (do shell script "find / -name Safari.app 2>/dev/null | head -1")

But I wouldn't recommend this. Especially not with "head -1" as you will only find the first occurence.
_______________________________________________
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: Get path to app without launching it
      • From: Joseph Weaks <email@hidden>
References: 
 >Get path to app without launching it (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Re. Help with simple grep - Thanks
  • Next by Date: Re: Re. Help with simple grep - Thanks
  • Previous by thread: Get path to app without launching it
  • Next by thread: Re: Get path to app without launching it
  • Index(es):
    • Date
    • Thread