Re: Coerce to 'alias list'
Re: Coerce to 'alias list'
- Subject: Re: Coerce to 'alias list'
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 20 Jan 2004 21:36:49 -0800
On 1/20/04 9:23 PM, "Michelle Steiner" <email@hidden> wrote:
>
tell application "Finder"
>
set foo to the selection
>
end tell
>
set foobar to {}
>
repeat with bar in foo
>
set foobar to foobar & (bar as alias)
>
end repeat
>
foobar
Always more efficient to do
set end of foobar to (bar as alias)
than
set foobar to foobar & (bar as alias)
which makes a new copy of the list every iteration.
--
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.