Re: Way to get functionality of C's 'continue' or HC 'next repeat' without using if construct?
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