text vs string
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