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

Re: Next repeat?


  • Subject: Re: Next repeat?
  • From: Emmanuel LEVY <email@hidden>
  • Date: Tue, 17 May 2011 17:59:56 +0200

Yes.

The usual workarounds are:


repeat with ... -- [ main repeat ]

repeat 1 times -- [ trick repeat ]

[ the script ]

now: to do a next (main) repeat, do: exit repeat inside the trick repeat

end repeat

end repeat


Or :

repeat with ... -- [ main repeat ]

try

[ the script ]

now: to do a next (main) repeat, do: error "next repeat"

on error "next repeat" -- this will trap only our custom "next repeat" error, not any "true" error
end try


end repeat


Best, Emmanuel

On May 17, 2011, at 5:29 PM, Alex Zavatone wrote:

Am I correct in assuming that there is no "next repeat" command in AS?

TIA,
- Alex Zavatone
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Next repeat? (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Next repeat?
  • Next by Date: Re: Property of a record
  • Previous by thread: Next repeat?
  • Next by thread: Problem with this list
  • Index(es):
    • Date
    • Thread