• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Since Apple Listens to this List...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Since Apple Listens to this List... (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Since Apple Listens to this List... [Case Statements]
  • Next by Date: Re: how many emails in Mail
  • Previous by thread: Re: Since Apple Listens to this List...
  • Next by thread: Re: Since Apple Listens to this List...
  • Index(es):
    • Date
    • Thread