Attaches data to a section of text in a field.
Syntax:
set the linkText of <chunk> of <field> to <textString>
Examples:
set the linkText of line 2 to 3 of field "Contents" to "Leaves of Grass"
Use the linkText property to store the destination of a link, the text of an associated file, a definition, or other data along with a chunk of text in a field. It doesn't do anything that associate a string, the rest of the work must be performed with linkClicked.
To change the style use link TextStyle:
set the TextStyle of ine 2 to 3 of field "Contents" to "link"
The linkText property can be set for any chunk in a field.
However, it is most useful when used with grouped text. If the linkText of grouped text is set to a value, the value is passed with the linkClicked message when the user clicks the text. This lets you use the linkText to specify the destination of a link or other data to use when the text is clicked.
See also: linkClicked (message), scriptTextSize (property), fixedLineHeight (property),