Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

app.activeDocument.activeDataset.name

$
0
0

Hi,

 

I've set up an action that I'm using to batch my process. I iterate through the dataSets[i] that have unique names. I am trying to determine the name of the current index of the datasets[i]. I am able to read the name like this:

 

alert(app.activeDocument.dataSets[0].name);// this only reads the name of the dataset at [0] for every iteration. myset_0,myset_0,myset_0,myset_0,myset_0,myset_0,myset_0...

 

The problem is that I call this during the batch process using the dataset. I can't remove the dataset at zero, because it will change the length and mess up the batch.

 

 

I would like to do it like this:

 

alert(app.activeDocument.activeDataset.name);//myset_0,myset_1,myset_2,myset_3,myset_4,mys et_5,myset_6...

 

but I'm getting undefined.

 

I'm not sure what is wrong with the syntax of this:

 

app.activeDocument.activeDataset.name

 

thanks,

Aubrey


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>