Re: Since Apple Listens to this List...
Re: Since Apple Listens to this List...
- Subject: Re: Since Apple Listens to this List...
- From: Matthew Smith <email@hidden>
- Date: Tue, 12 Feb 2002 15:18:54 +1100
on 11/02/2002 21:40, Emmanuel at email@hidden wrote:
>
> I thought I'd say "I'd love to see a case statement included in a near-future
>
> revision"; it would be so much more elegant than If/else if/elseif/elseif/etc
>
>
"next repeat" would be very elegant, too.
Why not throw an error and catch it before then end of the repeat?
set x to ""
repeat with i from 1 to 20
try
if i = 3 then error 112122
if i = 13 then error 112122
set x to x & return & (i as text)
on error 112122
end try
end repeat
display dialog x
In this example the list of numbers displayed in the dialog does not include
3 and 13. You might also want to work out a good error number to use. I only
used 112122 to do the simple test.
--
Matthew Smith
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.