Re: Get path to app without launching it
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