• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Back and forth between Posix and HFS paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Back and forth between Posix and HFS paths (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Back and forth between Posix and HFS paths
  • Next by Date: Re: old script fails AND BUG in Smile 3.5.2 (build 609)
  • Previous by thread: Re: Back and forth between Posix and HFS paths
  • Next by thread: Re: Back and forth between Posix and HFS paths
  • Index(es):
    • Date
    • Thread