Re: Finder-like conversion of a fileURL to 'user-friendly' path
Re: Finder-like conversion of a fileURL to 'user-friendly' path
- Subject: Re: Finder-like conversion of a fileURL to 'user-friendly' path
- From: Matt Neuburg <email@hidden>
- Date: Thu, 01 Jul 2010 12:32:45 -0700
- Thread-topic: Finder-like conversion of a fileURL to 'user-friendly' path
On Thu, 1 Jul 2010 10:29:17 -0700, Rainer Standke <email@hidden> said:
>At the bottom of each finder window there is a 'path' display that indicates
the path to the directory represented by the window. I'd like to be able to
convert a path like this one:
'file://localhost/Users/rainer/Desktop/S&S material/hidden/' to some like:
'MacHD/Users/rainer/Desktop/S&S material/hidden'.
The first one is not a path; it's a file URL. The second one is a path.
NSURL converts between them. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden