Re: exit this repeat loop
Re: exit this repeat loop
- Subject: Re: exit this repeat loop
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 12 Sep 2005 12:51:11 -0400
On 9/12/05, Robert Poland <email@hidden> wrote:
> repeat with index from 1 to the 10
> set optionDown to testOption() -- line 1
> if optionDown then return -- line 2
Well, you don't need the set, right? Just
if testOption() then return
should do the trick.
And this does way too much:
> on testOption()
> if (keys pressed) contains "option" then
> beep 2
> set optionDown to true
> return optionDown
> else
> set optionDown to false
> end if
> end testOption
How about this?
on testOption
(keys pressed) contains "option"
end testOption
>
> Tia,
> --
> Bob Poland - Fort Collins, CO
> http://www.ibrb.org/
> _______________________________________________
> 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
>
--
Mark J. Reed <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:
This email sent to email@hidden