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

text vs string


  • Subject: text vs string
  • From: Michael Turner <email@hidden>
  • Date: Mon, 05 Feb 2001 14:05:20 -0500

I have noticed several examples of scripts with the data type "text" where I
would naturally have used "string". What is the difference between these
data types? I suspect that some of my frustration with strings in
AppleScript comes from utilizing them when I should be using data type
"text"

set textMessage to "Text to be displayed" as text
set stringMessage to "More Text to be displayed" as string
display dialog textMessage & return & stringMessage
--> displays both messages

-Michael Turner


  • Follow-Ups:
    • Re: text vs string
      • From: Pier Kuipers <email@hidden>
  • Prev by Date: Code libraries (was: parent properties ...scope)
  • Next by Date: Re: Applescript & the CLI
  • Previous by thread: Code libraries (was: parent properties ...scope)
  • Next by thread: Re: text vs string
  • Index(es):
    • Date
    • Thread