• 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: Re: Re-Re-Repeat With question (newbie level)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Re-Re-Repeat With question (newbie level)


  • Subject: Re: Re: Re-Re-Repeat With question (newbie level)
  • From: Richard 23 <email@hidden>
  • Date: Thu, 15 Feb 2001 07:50:58 -0800

>>I know this is possible with numbers but how about letters?

>set the alphalist to {"a", "b", "c", "d"}
>repeat with currentLetter in the alphalist
> display dialog currentLetter
>end repeat

When you get tired of typing ", " over and over

try something like:

log "dial 1-800-"
repeat with theChar in "abcdefg"
log theChar
end repeat

-- or take advantage of the word class:

property bNoYes: words of "Cancel No Yes"

-- go wild if you want:

property nada: display dialog "Wow" buttons words of "Huh? OK" default
button 1

-- or even (look, ma! no continuation character!):

property bBtns : words of "Cancel Dum Kewl"
property opinion : button returned in (display dialog "Well how 'bout
that?
Good golly! Neet, huh?" buttons result default button 3 with icon -20024)

-- there's always paragraphs:

property Sig_List: paragraphs of "I don't know why people like these.
This signature gets boring after 3 or 4 times in a row.
Why not have more than one and perhaps alternate?
You can have several one-liners like this one...
...and then break them into a list during compilation.
Notice there haven't been any quotes in this long string?
Ok the first character and this one:"

return Sig_List


Don't forget to think different!


R23


  • Prev by Date: Calling an Application - Again
  • Next by Date: How to play a system sound without third-party OSAXen
  • Previous by thread: Re: Re: Repeat With question (newbie level)
  • Next by thread: Re: Repeat With question (newbie level)
  • Index(es):
    • Date
    • Thread