Quantcast
Viewing all articles
Browse latest Browse all 12845

Help with Dataset Save Out

Hey Guys.  Need some help on this script.  Below is what I have so far but need a little fill in for looping through the save process.  The script should create a master dataset then save out each dataset by name until all have been saved.  Any help is always appreciated.

 

var docRef = activeDocument;


//Create New Set for master file

var newDataSet = docRef.dataSets.add();


//Display first data set

docRef.dataSets[0].display();

 

//Save dataset to specific file path using the dataSet name

filepath = "file://Users/Me/Desktop/" + dataSet.name + ".pdf";

saveInFile = new File( filepath );

docRef.saveAs( saveInFile);

 

//Need to display next dataset then loop the save process until all sets have been saved out.


Viewing all articles
Browse latest Browse all 12845

Trending Articles