• 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: Way to get functionality of C's 'continue' or HC 'next repeat' without using if construct?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Way to get functionality of C's 'continue' or HC 'next repeat' without using if construct?


  • Subject: Re: Way to get functionality of C's 'continue' or HC 'next repeat' without using if construct?
  • From: Emmanuel <email@hidden>
  • Date: Tue, 26 Jul 2005 12:07:20 +0200

At 1:12 AM -0500 7/26/05, Jim Witte wrote:

repeat with i from 1 to numDocs set docName to (name of document i) if (docName does not contain "blah") then continue repeat end if set tURL to (URL of document i) [..] end repeat

Here is a trick I've read here and I sometimes use:

repeat with i from 1 to numDocs
repeat 1
        set docName to (name of document i)
        if (docName does not contain "blah") then
            exit repeat
        end if
        set tURL to (URL of document i)
        [..]
end repeat
end repeat

Emmanuel _______________________________________________ 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: 
 >Way to get functionality of C's 'continue' or HC 'next repeat' without using if construct? (From: Jim Witte <email@hidden>)

  • Prev by Date: Re: Really dumb question . . .
  • Next by Date: Re: Grabbing info from a webpage
  • Previous by thread: Re: Way to get functionality of C's 'continue' or HC 'next repeat' without using if construct?
  • Next by thread: Re: passing a parameter to the run handler
  • Index(es):
    • Date
    • Thread