Re: Safari Download Folder?
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