• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: Rob Stott <email@hidden>
  • Date: Sun, 23 Nov 2003 18:13:17 +0000

Hi,

As you've probably sussed out by now, the "repeat... ...by -1" method
is the best way. Just as a matter of interest though, you could also do
it like this - if you were feeling particularly perverse;

set loop_list to {"a", "b", "c", "d"}

--flip the list round backwards
set loop_list to reverse of loop_list

repeat with i from 1 to (the count of the items of loop_list)
display dialog item i of loop_list
end repeat


...of course, you'd need to remember to flip the list back round again
if you need it later on in the script...

r.
_______________________________________________
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.

References: 
 >(no subject) (From: "Wallace, William" <email@hidden>)

  • Prev by Date: How do I build an OSAX with Xcode?
  • Next by Date: accent problems in Mail
  • Previous by thread: Re: (no subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread