Re: mac to unix path names
Re: mac to unix path names
- Subject: Re: mac to unix path names
- From: Emmanuel <email@hidden>
- Date: Fri, 2 May 2003 15:36:55 +0200
At 8:03 AM -0500 02/05/03, Carl Albrecht-Buehler wrote:
>
So the long and the short of the question is, how can I change an MacOS file
>
path name with colons to a Unix path name? My current strategy has been to
>
deal with it just through string manipulation, but I'm hoping there is a
>
more direct way since this has limitations and is rather convuluted. I'm
>
using OS 10.2.4 with AppleScript 1.9 on an 800MHz iBook
What you need is probably:
---------------------
POSIX path of theFile
---------------------
or
---------------------
quoted form of POSIX path of theFile
---------------------
(Though this makes little sense, POSIX path is declared as a property of the POSIX file class in the StandardAdditions).
As far as I understand, though, not all shell scripts will accept those paths. It's still better if all your files and folders' names include only 7-bits ASCII and no space. :-)
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.