• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: List Problem (I think) Disguised as a GraphicConverter Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >List Problem (I think) Disguised as a GraphicConverter Problem (From: "Jonathan Levi, M.D." <email@hidden>)

  • Prev by Date: FASTEST Record Find with FileMaker Pro 7?
  • Next by Date: Re: List Problem (I think) Disguised as a GraphicConverter Problem
  • Previous by thread: List Problem (I think) Disguised as a GraphicConverter Problem
  • Next by thread: Re: List Problem (I think) Disguised as a GraphicConverter Problem
  • Index(es):
    • Date
    • Thread