Re: Safari Download Folder?
Re: Safari Download Folder?
- Subject: Re: Safari Download Folder?
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 4 Mar 2009 18:23:57 -0500
On Wed, Mar 4, 2009 at 3:24 PM, KOENIG Yvan <email@hidden> wrote:
>> set downloadFolder to (POSIX file (do shell script "echo " & dlLoc)) as
>> alias
>>
>
> THANKS
>
> I was searching for this tip since quite a year.
Well, you're welcome, but it seems kinda strange to have to call out
to the shell to interpret a Safari preference value. I guess Safari
is manually doing its own tilde-expansion somewhere.
(I realize that "have to call out to the shell" is overstating it. If
it's not doing anything more complicated than using bare '~' for the
user's home dir, then you can of course also do it manually - use TID
or your favorite string substitution method to replace '~' with the
value of (system attribute "HOME") (or whatever "path to" command
might yield the same result). Still seems like a lot of extra work
for something that you ought to be able to just ask Safari for
directly.)
--
Mark J. Reed <email@hidden>
_______________________________________________
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