• 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: Safari Download Folder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Safari Download Folder? (From: Dave <email@hidden>)
 >Re: Safari Download Folder? (From: "Mark J. Reed" <email@hidden>)
 >Re: Safari Download Folder? (From: Luther Fuller <email@hidden>)
 >Re: Safari Download Folder? (From: "Mark J. Reed" <email@hidden>)
 >Re: Safari Download Folder? (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Saving Microsoft Word as PDF
  • Next by Date: Re: Safari Download Folder?
  • Previous by thread: Re: Safari Download Folder?
  • Next by thread: Re: Safari Download Folder?
  • Index(es):
    • Date
    • Thread