mac to unix path names
mac to unix path names
- Subject: mac to unix path names
- From: Carl Albrecht-Buehler <email@hidden>
- Date: Fri, 02 May 2003 08:03:26 -0500
Hi Everyone,
I'm a total newbie to AppleScript, and I'm pretty stumped. I'm trying to
take a typical MacOS path name (like "startup disk:users:shared:text.txt")
and convert it to the Unix equivalent (/users/shared/text.txt) so that I can
process commands to folders through the shell. In the O'Reilly book,
"AppleScript in a Nutshell", it claims that one can get the path to a file
or folder by using the target property, but this has not worked for me. If
I use it in a script, I get "... of folder..." returns and if I try to force
its use, as in 'set the target of Finder window 1 to "/users/shared/"', it
returns an error telling me that Finder can not understand the command.
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
Thanks,
Carl
_______________________________________________
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.