Adobe 26001360 Scripting Guide - Page 193
Valid Commands, Notes, Example 46.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 193 highlights
Adobe Illustrator CS Scripting Guide 193 Valid Commands • count • delete • duplicate • exists • move • rotate • scale • transform • translate 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 12 Aug 03