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: Martin Michel <email@hidden>
- Date: Fri, 26 Mar 2010 16:46:50 +0100
Hi Alex,
Try this:
set mpath to "Macintosh HD:Users:martin:Desktop:test ®.pdf"
set ppath to POSIX path of mpath
-- "/Users/martin/Desktop/test ®.pdf"
set mpath to (POSIX file ppath) as text
-- "Macintosh HD:Users:martin:Desktop:test ®.pdf"
Best regards from sunny and warm Berlin,
Martin
Am 26.03.2010 um 16:30 schrieb Alex Zavatone:
> 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