Adobe 26001360 - Illustrator CS - PC Manual page 193

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

Advertisement

Adobe Illustrator CS Scripting Guide
Valid Commands
• count
• delete
• duplicate
• exists
• move
Notes
When you create a placed item, Illustrator may display a dialog. To avoid this dialog, check
the box to turn the warning off the first time the dialog is displayed.
It is not necessary to set the type of the content variable before binding. Illustrator
automatically sets the type to image.
Users can place vector art files, such as EPS and PDF files, with the File > Place... command
in Illustrator. Placed items can be created from vector art files in a script using the
technique illustrated in the following example.
Example 46.1
This example places a vector art file in the current document.
-- Create a new placed vector art item
-- fileRef is an alias or file reference to the vector file to be placed
-- itemPosition is a fixed point at which to position the placed item
property itemPosition: {100.0, 200.0}
set fileRef to choose file with prompt "Select vector art file"
tell application "Illustrator CS"
set placedRef to make new placed item in document 1 with properties ¬
{file path:fileRef, position:itemPosition}
end tell
• rotate
• scale
• transform
• translate
12 Aug 03
193

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents