Re: mac to unix path names
Re: mac to unix path names
- Subject: Re: mac to unix path names
- From: Christopher Nebel <email@hidden>
- Date: Fri, 2 May 2003 15:42:25 -0700
On Friday, May 2, 2003, at 06:36 AM, Emmanuel wrote:
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).
There's nothing to say that multiple classes can't define the same
property. If you were to look at the 'aeut' dictionary resource, you'd
see that the "file" and "alias" classes also define a "POSIX path"
property. Yes, I know this is less than optimal.
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. :-)
If you have any real example of a shell command that won't accept a
properly quoted POSIX path from AppleScript, file a bug. As far as I
know, there aren't any. The 7-bit ASCII problem was fixed in
AppleScript 1.8.3 -- it had to do with a disagreement over the text
encoding to use. Spaces and shell meta-characters are what "quoted
form" is for.
--Chris Nebel
Apple Development Tools
_______________________________________________
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.