View Single Post
Old Jun 25th, 2005, 1:01 PM   #1
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 582
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
Exclamation Adobe Illustrator Script help

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();
}
crawforddavid2006 is offline   Reply With Quote