I'm wondering if anyone knows if it is possible to merge all layers in an Illustrator document via ExtendScript. I've looked through the documentation but I can't see any methods to do this like the Photoshop scripting engine seems to have.
What I have is an Illustrator template with 3 layers that I am applying a data set to but would like to merge all the layers once the data set has been applied. I have all that stuff working, just needing a point in the right direction to get the layers merged.
you'll have to move all layers contents to destination layer,
or, if you have CS6 or later, record an Action (manually) to Flatten Artwork, then run your action via your script using doScript
Hi Carlos. I am trying to 'do script' in ESTK but I get an error "do while". Here is my code. Could you check please?
do script "Flatten Art" from "CSC Action set"