Re: How to do a goto with Applescript?
Re: How to do a goto with Applescript?
- Subject: Re: How to do a goto with Applescript?
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 02 Jan 2011 22:20:29 -0800
- Thread-topic: How to do a goto with Applescript?
On 1/2/11 12:35 PM, "Skeeve" <email@hidden> wrote:
> Or I use a loop:
>
> repeat
> if x=1 then
> do something
> exit repeat
> end if
> if x=2 then
> do something
> exit repeat
> end if
> exit repeat
> end repeat
A shorter way is to use the 'repeat one times' trick:
repeat one times
if x=1 then
do something
exit repeat
end if
rest of code here
end repeat
--
Paul Berkowitz
_______________________________________________
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