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: Paul Berkowitz <email@hidden>
- Date: Tue, 28 Jan 2003 10:55:13 -0800
On 1/28/03 9:40 AM, "Michelle Steiner" <email@hidden> wrote:
>
alias "Dora:Users:michelle:"
>
"Can't make alias \"Dora:Users:michelle:\" into a <<class alst>>."
>
>
What gives?
It's a very long-standing bug in 'alias list', ever since it was invented,
which I referred to only two days ago. 'alias list' fails when there's only
one item. So you always have to:
set foo to (folder of bar) as alias as list
in that case. To cover all cases:
tell app "Finder"
try
set foos to theItems as alias list
on error -- only one item present
set foos to theItems as alias as list
end try
end tell
--
Paul Berkowitz
_______________________________________________
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.