• 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: Philip Aker <email@hidden>
  • Date: Sat, 30 Aug 2008 14:23:30 -0700

On Aug 30, 2008, at 2:04 PM, Jerry Krinock wrote:

Is there any way to get the path to an application in AppleScript without launching it?

The following one-liner:

set targetAppPath to path to application "Safari"

gives the right answer but will LAUNCH Safari if it is not running.  I don't want the target app to launch.

Dawg slow:

do shell script "mdfind kMDItemFSName == 'Safari.app'"

Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

 _______________________________________________
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

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: Re: Get path to app without launching it
  • Next by thread: osadecompile misfires with 2 Apple supplied scripts
  • Index(es):
    • Date
    • Thread