• 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: Michelle Steiner <email@hidden>
  • Date: Mon, 25 Jul 2005 23:25:46 -0700


On Jul 25, 2005, at 11:12 PM, 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

How about this; it's a slight modification of the code you are using.

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

-- Michelle

-- 
Whoever said the last man standing is the winner didn't invite the girl.

 _______________________________________________
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

  • Follow-Ups:
    • Re: Way to get functionality of C's 'continue' or HC 'next repeat' without using if construct?
      • From: Yvan KOENIG <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: Way to get functionality of C's 'continue' or HC 'next repeat' without using if construct?
  • Next by Date: Re: Really dumb question . . .
  • Previous by thread: Way to get functionality of C's 'continue' or HC 'next repeat' without using if construct?
  • Next by thread: Re: Way to get functionality of C's 'continue' or HC 'next repeat' without using if construct?
  • Index(es):
    • Date
    • Thread