• 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: ranting again
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ranting again


  • Subject: Re: ranting again
  • From: Richard 23 <email@hidden>
  • Date: Sun, 3 Dec 2000 07:41:30 -0800

>As you pointed out, the "as item" does nothing in that construction.

Show me an easier way to return a single item list as a single item
without affecting a list result without an if-then construction and
I'll use it.

on Quote(myInput)
set myOutput to {}
repeat with theItem in myInput
set theItem to "'" & theItem & "'"
end repeat
myOutput as item
end Quote


set theStr to Quote("hello")
--> 'hello'


set {strOne, strTwo} to Quote({"Hello", "there"})
--> {'Hello', 'there'}

It is doing something...

R23


  • Prev by Date: Re: Re: Month as Integer (or he's ranting again)
  • Next by Date: re: Month as Integer (or he's ranting again)
  • Previous by thread: Re: Contextual Menus in OS X?
  • Next by thread: Re: ranting about "as item"
  • Index(es):
    • Date
    • Thread