Mobile app version of vmapp.org
Login or Join
Steve758

: How to delete unused data sets after a batch export to separate files? I read the answers to the following question: Illustrator variables / data-driven documents: how to batch-export one file

@Steve758

Posted in: #AdobeIllustrator #Automation #BatchProcessing #DataMerge

I read the answers to the following question:
Illustrator variables / data-driven documents: how to batch-export one file for each data set?
So now I have multiple files created...awesome! But now I want to remove the extra data sets from each of these files and can't figure out a way to automate this feature.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Steve758

1 Comments

Sorted by latest first Latest Oldest Best

 

@Alves566

This is a rare question, as I think most users just accept this and trudge on, but I can think of just a couple of ways to do this:


Save formats which do not retain the data, if you can: a PDF without Illustrator Editing capabilities being preserved.
After saving all of your files, run another "post" batch on the entire resulting file set with an action that plays the following script from the menu item ( you must have this put into your Illustrator scripts folder, etc). Make this action do a Save and Close for ultimate simplicity.

function test(){
var doc = app.activeDocument;
for (var i = doc.variables.length - 1; i > -1; i--) {
doc.variables[i].remove();
}
};
test();

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme