Re: Back and forth between Posix and HFS paths
Re: Back and forth between Posix and HFS paths
- Subject: Re: Back and forth between Posix and HFS paths
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 26 Mar 2010 11:47:24 -0400
POSIX file "unix path goes here" as string
There are no non-UNIX-friendly characters in that filename, by the
way. The only character you can't have in a UNIX filename is a slash.
Your filename isn't particularly typing-at-the-command-line-friendly
(since it's hard to type a ™ and you have to quote the thing), but
really, there's no problem in UNIX with such files.
On Fri, Mar 26, 2010 at 11:30 AM, Alex Zavatone <email@hidden> wrote:
> I've been trying to go back and forth between POSIX paths and HFS paths and getting the POSIX path of a file that exists is rather easy, but going back the other way, is nonintuitive.
>
> I've got this file on my HD:
>
> Hard Disk: Test ™.txt
>
> I'm looking to preserve the non UNIX friendly characters, so do any of you know how to go from the POSIX path back to the HFS path?
>
> TIA,
> - Alex _______________________________________________
> 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
>
--
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