Open all .indd files from the selected folder
hi all,
i want open .indd files selected folder.
trying script:
var myfolder = folder.selectdialog( "select folder indesign files" );
var myfiles = [];
var myfilelist = myfolder.getfiles();
(var = 0; < myfilelist.length; i++) {
var myfile = myfilelist[i];
myfile.name.match(/\.indd$/)
myfiles.push(myfile);
app.open(myfiles)
}
can give solution me.
thanks in advance
beginner
var myfolder = folder.selectdialog("select folder indesign files");
if (!myfolder)
exit(0);
var myfilelist = myfolder.getfiles();
for (var = 0; < myfilelist.length; i++) {
var myfile = myfilelist[i];
if (myfile instanceof file && myfile.name.match(/\.indd$/i)) {
app.open(myfile);
}
}
cheers,
stephen
More discussions in InDesign Scripting
adobe
Comments
Post a Comment