Adobe 26001360 - Illustrator CS - PC Manual page 236

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

236
Table 4.101 view, views — Properties (Continued)
Property
properties
screen mode
zoom
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
R/O
Value type
record
Valid values:
• multiwindow
• desktop
• full screen
real
12 Aug 03
AppleScript Reference
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%

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents