Re: Coerce to 'alias list'
Re: Coerce to 'alias list'
- Subject: Re: Coerce to 'alias list'
- From: Michelle Steiner <email@hidden>
- Date: Tue, 20 Jan 2004 19:17:43 -0700
On Jan 20, 2004, at 6:02 PM, Walter Ian Kaye wrote:
try
set x to every folder of folder theRootFolder as alias list
on error -- only one
set x to every folder of folder theRootFolder as alias
end try
That doesn't work for me on 10.2.8.
When I do
tell app "Finder"
selection as alias list
end tell
I get a list of Finder references instead of a list of aliases, and
since there's no error, a try block is useless.
That's because you're using "selection"; there is a bug that doesn't
let you coerce the result of "selection" into an alias list. This
works:
set foo to (choose folder default location (path to desktop))
tell application "Finder"
try
set bar to items of foo as alias list
on error
set bar to items of foo as alias
end try
end tell
--
Homosexuals do not recruit; Christians recruit.
_______________________________________________
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.