Re: Basic question - Getting Mac path to file
Re: Basic question - Getting Mac path to file
- Subject: Re: Basic question - Getting Mac path to file
- From: Bastiaan Boertien <email@hidden>
- Date: Mon, 31 Jan 2005 14:20:12 +0100
Hello Bernardo
maybe this helps you
set thePath to "/Users/administrator/"
set theAlias to (POSIX file thePath) as alias
returns:
alias "Macintosh HD:Users:administrator:"
backwards:
set thePath to "Macintosh HD:Users:administrator:"
set thePOSIXPath to POSIX path of thePath
returns:
"/Users/administrator/"
greetings bastiaan
Op 31-jan-05 om 13:19 heeft Bernardo Hoehl het volgende geschreven:
Hi List,
This is very basic, please forgive me for being so stupid, but I can't find the answer on my books:
set x to "/Users/bernardo/Desktop/1.txt"
POSIX path of x
returns ---> "/:Users:bernardo:Desktop:1.txt"
Question:
How do I get the right Mac path of this?
Thanks!
Bernardo Höhl
Rio de Janeiro - Brasil _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden