Adobe 26001360 Scripting Guide - Page 236
Valid Commands, Notes, Example 73.1, Table 4.101, view, views - Properties Continued
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 236 highlights
236 AppleScript Reference Table 4.101 view, views - Properties (Continued) Property R/O Value type properties record screen mode zoom Valid values: • multiwindow • desktop • full screen real What it is All of the view's properties returned in a single record (properties which are individually read-only remain so in this record). The mode of display for this view The zoom factor of this view, where 100.0 is 100% Valid Commands • count • exists Notes Illustrator's view object represents a window view onto a document. New views cannot be created, but some properties of existing views can be modified, including the center point, screen mode and zoom. Example 73.1 This example demonstrates how a view can be centered to the currently selected page item. -- Center the view on the first selected object tell application "Illustrator CS" set selectedItems to the selection if selectedItems is not {} then set firstObject to item 1 of selectedItems set newPosition to position of firstObject set center point of view 1 of document 1 to newPosition end if end tell Example 73.2 This example shows how a view can be toggled to fill the entire screen. -- Fill the entire screen with the first view 12 Aug 03