Publish all open files using JSFL script problem
Hi, I'm trying to get a jsfl script to run in Animate 23.0.2 through Run Command... that will publish all open files. The script I'm using is below. My problem is that it only will publish the open tab file, but it does it in every open file's directory. So, I end up with one file's published files in all the directories.
function export_all(){
var docs=an.documents;
var docs_length=docs.length;
for (var i=0; i<docs_length; i++) {
var doc = docs[i];
doc.publish();
}
}
export_all();