Re: mac to unix path names
Re: mac to unix path names
- Subject: Re: mac to unix path names
- From: Carl Albrecht-Buehler <email@hidden>
- Date: Fri, 02 May 2003 10:00:00 -0500
on 05/02/2003 9:29 AM, Paul Berkowitz wrote:
>
Use the name of your actual hard disk, not "Macintosh HD". Or use (path to
>
startup disk as Unicode text) to work anywhere.
>
>
set theMacOSPath to ((path to startup disk as Unicode text) &
>
"Users:Shared:")
>
set theUnixPath to POSIX path of theMacOSPath
>
--> "/Users/Shared/"
That's the ticket! Thanks a lot, Paul!
And thanks to Ben, Michelle, and Emmanuel - This is an incredibly responsive
and helpful group!
One last question - if I am reading out a path name from a text file, once I
have the path name, how can I set that string to be a path so that I can
POSIX it? For example:
On my Desktop there is a file called "Text.txt"
I read out the contents, which consists merely of a path name like
"startup disk:users:shared:"
How can I get AppleScript to treat the variable that I read out of the file
as a path?
Thanks again so much for all this help!
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.