Re: mac to unix path names
Re: mac to unix path names
- Subject: Re: mac to unix path names
- From: Michelle Steiner <email@hidden>
- Date: Fri, 2 May 2003 07:24:22 -0700
On Friday, May 2, 2003, at 06:57 AM, Carl Albrecht-Buehler wrote:
set theMacOSPath to "Macintosh HD:Users:Shared:"
set theUnixPath to POSIX path of theMacOSPath
Thanks a whole lot, Ben; that's just about the trick I was looking
for! I
have one concern though: This example yields the result of "/Macintosh
HD/Users/Shared/". Is this path correct? Is the Users folder not
actually
simply a directory underneath "/"?
Is your hard disk named "Macintosh HD"? I find that if the first item
in the path is not the name of the hard disk, it will consider that the
name is a folder. For instance, my hard disk is named "Dora."
POSIX path of "Macintosh HD:users:shared"
--> "/Macintosh HD/users/shared"
But
POSIX path of "Dora:users:shared"
--> "/users/shared"
--Michelle
--
Give Peace A Chance.
_______________________________________________
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.