• 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: Thu, 5 Mar 2009 12:18:29 -0500

On Thu, Mar 5, 2009 at 12:10 PM, KOENIG Yvan <email@hidden> wrote:
> As I don't know the UNIX rules, I never imagined that it may be a bug.

To be clear, this isn't a UNIX (or POSIX) thing, but a URI thing.  It
just so happens that the (POSIX file) command accepts something
approximating URI syntax (and in fact creates an object of class "file
url", last I checked).

UNIX filenames can have almost any character in them, so this:

POSIX file ("/Users/fred/some file")

should continue to look for a file with the literal series of
characters ( '%', '2', '0' ), as it does now.  But if the string has
the form of a URI:

POSIX file ("file:///Users/fred/some file")

then the   should be expanded to a space, equivalent to this:

POSIX file ("/Users/fred/some file").

Further, the W3C says that %-sequences should be interpreted as UTF-8, so this:

POSIX file ("file:///Users/fred/Documents/ダウンロード")

would be the Downloads folder if fred uses a Japanese locale.

--
Mark J. Reed <email@hidden>




--
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

  • Follow-Ups:
    • Re: Safari Download Folder?
      • From: KOENIG Yvan <email@hidden>
References: 
 >Re: Safari Download Folder? (From: Takaaki Naganoya <email@hidden>)
 >Re: Safari Download Folder? (From: "Mark J. Reed" <email@hidden>)
 >Re: Safari Download Folder? (From: "Mark J. Reed" <email@hidden>)
 >Re: Safari Download Folder? (From: KOENIG Yvan <email@hidden>)
 >Re: Safari Download Folder? (From: "Mark J. Reed" <email@hidden>)
 >Re: Safari Download Folder? (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Safari Download Folder?
  • 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