Re: File URL to Alias?
Re: File URL to Alias?
- Subject: Re: File URL to Alias?
- From: Shane Stanley <email@hidden>
- Date: Wed, 26 Feb 2014 13:17:21 +1100
On 26 Feb 2014, at 11:49 am, Ron Hunsinger <email@hidden> wrote:
> I'm not sure what you mean by "supposed to". Apple takes great pains to be standards-compliant wherever possible.
I suspect what Yvan was referring to is the change in Mavericks, referred to in the release notes:
> The "file" URL scheme is defined so that no authority, an empty host, and "localhost" all mean the end-user's machine. To reduce memory use, file URL objects created with file system paths or from file system representation no longer include the host string "localhost".
> This change also means -host no longer returns the string "localhost" for file URLs and will instead return nil.
(I say this because I actually referred him to these notes, and I may have mislead him.)
So it's probably more a case of being surprised that URLs are still being returned with localhost, given that it's not unreasonable to expect that they are being returned from NSURLs. But it may be that NSURLs created other than from paths or file system representations still include localhost.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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