Re: Silly repeat question
Re: Silly repeat question
- Subject: Re: Silly repeat question
- From: Emmanuel LEVY <email@hidden>
- Date: Thu, 26 Aug 2010 20:48:19 +0200
yes, so there are various tricks, mainly the "repeat 1" trick and the
"error "next repeat" " trick:
----
repeat -- your loop
repeat 1 times
-- blah blah
-- when you want "next repeat" you do:
if [ whatever ] then exit repeat
end repeat
end repeat
----
repeat -- your loop
try
-- blah blah
-- when you want "next repeat" you do:
if [ whatever ] then error "next repeat"
on error "next repeat" -- will selectively trap that error, other
errors will propagate
end try
end repeat
----
Emmanuel
On Aug 26, 2010, at 8:42 PM, Nathan Greenstein wrote:
It appears that AS does not have this operator. See the bottom of
this article.
--
Nathan Greenstein
email@hidden
On Thu, Aug 26, 2010 at 11:36, Alex Zavatone <email@hidden>
wrote:
I've RTFM but didn't see an option to perform a "next repeat" in
AppleScript.
Is that option not available in AS or am I missing something
painfully obvious?
Alllllsoo, I just did a test with one of my xCode apps that wraps
and runs an AS, to check and see if a Mac would run it as a
standalone process through Fast User Switching when the user is
logged in but not the front user.
It works.
In case anyone finds this interesting, now you know.
Cheers,
- Alex
_______________________________________________
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 (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