Adobe 26001360 - Illustrator CS - PC Manual page 89

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

Advertisement

Adobe Illustrator CS Scripting Guide
Table 4.13 dataset, datasets — Properties (Continued)
Property
properties
Valid Commands
• count
• delete
• display
• exists
• make
• update
Example 7.1
-- Datasets and Variables
--
-- Activate Illustrator
-- Make a new document
-- Make two variables, one of kind visibility and the other textual
-- Make a rectangle and a text frame, and attach the respective variables
-- Set the color of the rectangle and the contents of the text frame
-- Make the first dataset
-- Change the contents of the text and the visibility of the rectangle
-- Make the second dataset
-- display the two datasets
--
tell application "Illustrator CS"
activate
make new document
make new variable in document 1 with properties {name:"RecVariable",
kind:visibility}
make new variable in document 1 with properties {name:"TextVariable",
kind:textual}
make new rectangle in document 1 with properties {name:"Rec1", position:{100,
500}, visibility variable:variable "RecVariable" of document 1}
make new text frame in document 1 with properties {name:"Text1", position:{100,
550}, content variable:variable "TextVariable" of document 1}
set the fill color of page item "Rec1" of document 1 to {class:RGB color info,
red:150, green:255, blue:255}
set the contents of text frame "Text1" of document 1 to "Now you see me..."
make new dataset in document 1 with properties {name:"My First Dataset"}
R/O
Value type
record
12 Aug 03
What it is
all of the data set's properties
returned in a single record
89

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents