• 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
loops
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

loops


  • Subject: loops
  • From: Jason Davies <email@hidden>
  • Date: Thu, 14 Feb 2002 10:07:32 +0000

can someone explain loops to me? I see them here, I see them there, I see them
in my O'Reilly Applescripting book, I even use them when other people write them
for me...

but I do not understand how they work and therefore cannot write my own without
worrying.

The examples I see are usually ( I quote from the veritable BBedit 6.0 manual)

repeat with i in every line of document 1
--do stuff here
end repeat

what is 'i'? Why should that have anything to do with repeats? Is it just a
character? is it a Roman '1'? does it matter? I cannot seem to find an answer to
this...!

(background: I am writing an AS that will look through my book draft, check in
Filemaker that the book in question is listed there, mark it as such, then go
back to the draft in BBedit to look for the next one. I have everythign working
apart from the repeat, which I don't understand. Error handling is simple: FM
gets upset if it can't find the work in question. I am presuming that when i do
get this loop written, it will still suspend the AS so I can sort out the
omission. Any comments on this also welcome and gratefully received).
_______________________________________________
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.

  • Prev by Date: Re: Son of Y2.401K
  • Next by Date: Re: How to make a simple applescript work as a CGI? seems IMPOSSIBLE!
  • Previous by thread: Re: Attachment or no Attachment
  • Next by thread: Re: loops
  • Index(es):
    • Date
    • Thread