![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Expert Programmer
|
what is wrong with this code?
if (documents.length > 0) {
var aiVar = activeDocument.variables.add();
aiVar.kind = VariableKind.TEXTUAL;
var myText = activeDocument.textArtItems.add();
myText.contents = "Dataset 1";
myText.contentVariable = aiVar;
var set1 = activeDocument.dataSets.add();
myText.contents = "Dataset 2";
var set2 = activeDocument.dataSets.add();
} |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
It's not JavaScript?
__________________
|
|
|
|
|
|
#3 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
|
|
|
|
|
|
#4 |
|
Expert Programmer
|
it is java script but it is used in Adobe illustrator. I guess what you could relate these scripts to are Macros in Microsoft office.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|