• 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: KOENIG Yvan <email@hidden>
  • Date: Thu, 5 Mar 2009 18:40:45 +0100


Le 5 mars 2009 à 18:18:29, Mark J. Reed a écrit :

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/ã‚¿ã‚™ã‚% a6ンロード")

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


So, as

set theURL to "file://localhost/Users/yvan_koenig/Desktop/Sans% 20titre.rtfd/"
POSIX file theURL


returns

file "Macintosh HD:Users:yvan_koenig:Desktop:Sans titre.rtfd:"

I may file a report
It behaves the same under 10.5.4 (I didn't updated the imac intel inside which is back today)


Is one of you able to test the behavior under 10.5.6 ?

I can't leave 10.4.11 at this time.

Yvan KOENIG (from FRANCE jeudi 5 mars 2009 18:40:39)


_______________________________________________ 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: "Mark J. Reed" <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>)
 >Re: Safari Download Folder? (From: "Mark J. Reed" <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