Re: Name of current users home folder (OS X)
Re: Name of current users home folder (OS X)
- Subject: Re: Name of current users home folder (OS X)
- From: Michelle Steiner <email@hidden>
- Date: Tue, 28 Jan 2003 10:40:48 -0700
I'm getting some peculiar results with some code here.
set bar to (path to desktop)
tell application "Finder"
set foo to (folder of bar) --as alias list
end tell
log foo
foo
The log:
tell current application
path to desktop
alias "Dora:Users:michelle:Desktop:"
end tell
tell application "Finder"
get folder of alias "Dora:Users:michelle:Desktop:"
folder "michelle" of folder "Users" of startup disk
(*folder michelle*)
end tell
But the result window shows nothing.
Undelete "as alias list" in the above script, and the log shows:
tell current application
path to desktop
alias "Dora:Users:michelle:Desktop:"
end tell
tell application "Finder"
get folder of alias "Dora:Users:michelle:Desktop:"
alias "Dora:Users:michelle:"
"Can't make alias \"Dora:Users:michelle:\" into a <<class alst>>."
What gives?
--
"There's some good in the world, Mr. Frodo, and it's worth fighting
for."
_______________________________________________
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.