Microsoft Word Suite
This example displays a merge document for the first data record in which the FirstName field
contains "Joe." If the data record is found, the number of the record is stored in the
set view data merge field codes of data merge of active document to false
set myDMData to data source of data merge of active document
if (find record myDMData find text "Joe" field name "FirstName") is true ¬
then set numRecord to active record of myDMData
Command: fit to pages
Decreases the font size of text just enough so that the document will fit on one fewer pages. An error
occurs if Word is unable to reduce the page count by one.
fit to pages document Required. An expression that returns a document object.
This example attempts to reduce the page count of the active document by one page.
fit to pages active document
display dialog "Fit to pages failed"
This example attempts to reduce the page count of each open document by one page.
repeat with doc in (get documents)
fit to pages doc
Displays a cached document associated with the specified hyperlink object, if it's already been
downloaded. Otherwise, this method resolves the hyperlink, downloads the target document, and
displays the document in the appropriate application.
Note If the hyperlink uses the file protocol, this method opens the document instead of downloading it.
follow hyperlink object Required. An expression that returns a hyperlink object.
[new window Boolean] Optional. True to display the target document in a new window. The
default value is false.
[extra info Unicode text] Optional. A string or byte array that specifies additional information
for HTTP to use to resolve the hyperlink. For example, you can use extra info to specify the
coordinates of an image map. Use the extra info required property of the hyperlink object to
determine whether extra information is required.