Re: Safari Download Folder?
Re: Safari Download Folder?
- Subject: Re: Safari Download Folder?
- From: KOENIG Yvan <email@hidden>
- Date: Wed, 4 Mar 2009 21:24:03 +0100
Le 4 mars 2009 à 19:26:40, Mark J. Reed a écrit :
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 can't find any way to convert the string "~/Desktop" to an
alias. Finder
and System Events just don't know where "~/Desktop" is located and
error.
Well, it's a POSIX path, but "POSIX file" doesn't like it either - it
just converts it to :~:Downloads. It seems drastic to resort to do
shell script here, but it works:
set downloadFolder to (POSIX file (do shell script "echo " &
dlLoc)) as alias
THANKS
I was searching for this tip since quite a year.
Yvan KOENIG (from FRANCE mercredi 4 mars 2009 21:23:58)
_______________________________________________
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