Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 25th, 2005, 2:01 PM   #1
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 597
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
Old Jun 25th, 2005, 2:14 PM   #2
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 6 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
It's not JavaScript?
__________________

tempest is offline   Reply With Quote
Old Jun 25th, 2005, 2:36 PM   #3
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
http://www.catb.org/~esr/faqs/smart-...ons.html#intro
Cerulean is offline   Reply With Quote
Old Jun 25th, 2005, 3:37 PM   #4
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 597
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
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.
crawforddavid2006 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:43 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC