Re: List Problem (I think) Disguised as a GraphicConverter Problem
Re: List Problem (I think) Disguised as a GraphicConverter Problem
- Subject: Re: List Problem (I think) Disguised as a GraphicConverter Problem
- From: Neil Faiman <email@hidden>
- Date: Tue, 8 Mar 2005 21:01:08 -0500
On Mar 8, 2005, at 8:10 PM, Jonathan Levi, M.D. wrote:
...
the second doesn't. Is there a fundamental property about iterating
through a list's items that I'm missing? --Many thanks, Jonathan
Yes. When you use the "repeat with <name> in <list>" command, the
successive values of <name> are *references to* the values of the list,
not the list values themselves.
--------------------------------
...
repeat with wname in items of gcWindowNames --doesn't work
gcActivateWindow(wname)
end repeat
The values of wname are literally "item 1 of gcWindowNames", "item 2 of
gcWindowNames", etc.
Change the function call to "gcActivateWindow(contents of wname)" and
it should work.
Regards,
Neil Faiman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden