• 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: text vs string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: text vs string


  • Subject: Re: Re: text vs string
  • From: email@hidden
  • Date: Tue, 6 Feb 2001 12:50:53 EST

In a message dated 2/6/01 8:20:05 AM, Pier wrote:

>>set x to "Hello" as text
>>class of x
>>--result: string
>
>Does that clarify anything?

No, and now I have a headache.

log text
-- > (*text*)
log string
--> (*string*)
log class of text
--> (*class*)
log class of "string"
--> (*string*)
display dialog class of "string" giving up after 1
--> TEXT
display dialog text giving up after 1
--> ctxt
display dialog class of text giving up after 1
--> pcls
display dialog class of text as string giving up after 1
--> class
display dialog class of (text as string) giving up after 1
--> TEXT

Apparently anything logged gets coerced to a string first, but not that which
is displayed in a dialog. Personally, I would prefer it be the other way
around.

Jeff Baumann
email@hidden
www.linkedresources.com

Strings are classy


  • Follow-Ups:
    • Re: Re: text vs string
      • From: Emmanuel <email@hidden>
  • Prev by Date: Filemaker Value List into Applescript list
  • Next by Date: Re: run-only applets/dropplets
  • Previous by thread: Re: text vs string
  • Next by thread: Re: Re: text vs string
  • Index(es):
    • Date
    • Thread