We Recommend

Beginning AppleScript (Programmer to Programmer) Beginning AppleScript (Programmer to Programmer)
Geared toward programmers with no prior development knowledge, Beginning AppleScript serves as a comprehensive guide to using AppleScript on the Mac OS X platform. This title introduces the reader to AppleScript, and then illustrates how to efficiently start writing scripts through sample programs as each concept is introduced.


Ballyhoo


Posted By

miklophone on 05/29/07


Tagged

POSIX hfs


Versions (?)


Unix/HFS path conversion


Published in: AppleScript 


URL: http://applescriptsourcebook.com/viewtopic.php?pid=46908

  1. set theUnixPath to "/Users/Shared/"
  2. (POSIX file theUnixPath) as string
  3. --> "Macintosh HD:Users:Shared:"
  4.  
  5. set theMacOSXPath to "Macintosh HD:Users:Shared:"
  6. POSIX path of theMacOSXPath
  7. --> "/Users/Shared/"

Report this snippet 

You need to login to post a comment.