Adobe 26001360 Scripting Guide - Page 89
Valid Commands, Example 7.1, Table 4.13, dataset, datasets - Properties Continued
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 89 highlights
Adobe Illustrator CS Scripting Guide 89 Table 4.13 dataset, datasets - Properties (Continued) Property R/O Value type What it is properties record all of the data set's properties returned in a single record 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"} 12 Aug 03