Re: Safari Download Folder?
Re: Safari Download Folder?
- Subject: Re: Safari Download Folder?
- From: Luther Fuller <email@hidden>
- Date: Wed, 04 Mar 2009 12:55:10 -0600
On Mar 4, 2009, at 12:26 PM, Mark J. Reed wrote:
On Wed, Mar 4, 2009 at 1:20 PM, Luther Fuller <email@hidden>
wrote:
There is a way. And it's standard. Read the value of
CFBundleIdentifier in
the application bundle's "info.plist" file. For Safari this value is
"com.apple.Safari". You can also simply get the 'bundle identifier'
of
StandardAdditions 'info for' command.
Both of those require knowing where Safari.app lives. If all I have
is (application "Safari"), what's the first step?
I tried this ...
set appsFolder to (path to applications folder)
tell application "Finder"
get some application file of appsFolder whose name is "Safari"
end tell
and got an error, so I tried this ...
set appsFolder to (path to applications folder)
tell application "Finder"
get some application file of appsFolder whose name is "Safari.app"
end tell
and got what I needed. I have the Finder's "Show all file extensions"
preference checked.
_______________________________________________
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