Re: Creating a folder on the desktop (recap)
Re: Creating a folder on the desktop (recap)
- Subject: Re: Creating a folder on the desktop (recap)
- From: patrick machielse <email@hidden>
- Date: Fri, 09 Sep 2005 11:45:16 +0200
Op 9-sep-2005, om 6:31 heeft Mark J. Reed het volgende geschreven:
On 9/8/05, patrick machielse <email@hidden> wrote:
I further learned / found out that support for true UNIX file paths
seems constricted to "System Events"
Could you expand on what you mean by that?
and that POSIX path / file is
not a complete peer, in that it can't resolve "~/.." etc.
[]
If System Events supports
the tilde-notation on OS X, I find that surprising. Useful, but
surprising.
-- this works
tell application "System Events" to get folder "~/.."
-- this doesn't, no surprise
tell application "Finder" to get folder "~/.."
-- this is converted to 'file ":~:..:"' at compile time
POSIX file "~/.."
-- this is results in 'file ":~:..:"' at run time
set thePath to "~/.."
POSIX file thePath
I would have liked it if POSIX file resolved the path and expanded
the tilde at run time.
-- this is an error "can't get file '~/..'" (not: ':~:..:' !)
tell application "Finder"
set thePath to "~/.."
POSIX file thePath
end tell
It's just slightly confusing to me.
patrick
_______________________________________________
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