Re: Why doesn't "choose from list (name of processes)" work?
Re: Why doesn't "choose from list (name of processes)" work?
- Subject: Re: Why doesn't "choose from list (name of processes)" work?
- From: Nigel Garvey <email@hidden>
- Date: Sat, 30 Jun 2001 17:24:09 +0100
Michelle Steiner wrote on Sat, 30 Jun 2001 06:59:08 -0700:
>
tell application "Finder"
>
choose from list (name of processes)
>
end tell
>
--> Finder got an error: Some data was the wrong type.
>
>
However the following works just fine,
>
>
tell application "Finder"
>
set foo to name of processes
>
choose from list foo
>
end tell
I think this is the old Finder reference thing. The parameter for 'choose
from list' is a list (though a single item also works, it seems). 'Name
of processes' is a Finder reference that needs to be resolved to a hard
value first.
choose from list (get name of processes)
choose from list (name of processes) as list
NG