Re: Path of a folder represented in AppleScript path style
Re: Path of a folder represented in AppleScript path style
- Subject: Re: Path of a folder represented in AppleScript path style
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 12 Jul 2005 23:24:03 -0600
On Jul 12, 2005, at 10:42 PM, Ron Ballesteros wrote:
I'm working on a little app that needs to write to a file a bunch
of folder paths. I can get the folder paths in the usual POSIX
style path as returned by -subpathsAtPath:(NSString *)path but I
need to write the paths in the AppleScript style of
"MacHD:Users:ronmb:Desktop:DataFolder:"
Those are called HFS paths.
Is there something in Cocoa that will allow me to provide it a
POSIX path and return to me the AppleScript style path?
No, but you can do that using CoreFoundation. Read the CFURL
documentation for details.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden