I am new to AI scripting and i have a file that have multiple artboards. I would like to find a scripting way to move each artboard and its content in different ai files.
I would like to have a method similar to the SaveAs -> Save Each Artboard in separate files but in scripting if it's possible.
Thank you very much for your help.
In Illustrator scripting commands which are available to us there's a document.saveAs() function which takes several parameters among which is an object instance of "IllustratorSaveOptions", which contains the property "artboardRange". Using the saveAs() and using your instantiated IllustratorSaveOptions, you can do exactly what you want.