How can I auto export all Arboards in the document as PNG using javascript?
Hi, I have a script that exports the current AI document as PNG24 and it works just fine but recently we changed the AI file to a new one, but now the new file is seperated by artboards and i whant the script to export all of the artboards seperarated but it exports just all artboards in just one PNG file.
I saw this post: https://gist.github.com/larrybotha/5baf6a9aea8da574cbbe that works just fine and does the work if i whanted to doit by hand file by file, but it creates a window to input the export options ant it have just to many options to input. The window that the script creates:

My question is is there so way to do the script but automaticly whith default otions preseted inside the code, where i dont have to input all the export options every time that the script will export the artboards?
The code that im currently using:
doc = app.activeDocument;
doc.activate();
//Export PNG
doc.exportFile(
new File(destination_folder + '/' + textFile.name.split('.')[0] + '.png'),
ExportType.PNG24,
new ExportOptionsPNG24()
);
