Text Suite
476
Syntax
paste special text range Required. An expression that returns a text range object representing the
location where you want to paste the object.
[link Boolean] Optional. True to create a link to the source file of the Clipboard contents. The
default value is false.
[placement enumeration] Optional. Can be either of the following : float over text or in line.
The default value is in line.
[display as icon Boolean] Optional. True to display the link as an icon. The default value is
false.
[data type enumeration] Optional. A format for the Clipboard contents when theyre inserted
into the document. Can be one of the following: paste oleobject, paste rtf, paste text, paste
metafile picture, paste bitmap, paste device independent bitmap, paste hyperlink, paste
shape, paste enhanced metafile, paste styled text, or paste html. The default format varies,
depending on the contents of the Clipboard.
[icon label Unicode text] Optional. If display as icon is true, this argument is the text that
appears below the icon.
Example
This example inserts the Clipboard contents at the insertion point as unformatted text.
set myRange to collapse range text object of selection direction collapse start
paste special myRange data type paste text
This example copies the selected text and pastes it into a new document as a hyperlink. The source
document must first be saved for this example to work.
if selection type of selection is selection normal then
copy object selection
set newDoc to make new document
paste special text object of newDoc data type paste hyperlink with link
end if
Command: previous paragraph
Returns a paragraph object relative to the specified paragraph.
Syntax
previous paragraph paragraph Required. An expression that returns a paragraph object.
Example
This example selects the paragraph that precedes the selection in the active document.
set prevPara to previous paragraph paragraph 1 of selection
select text object of prevPara