Copy link to clipboard
Copied
Hi experts,
Assume mySource folder has full of InDesign files, my aim is to move InDesign files from mySource to myDestination each time just three.
thanks
regard
John
Hi John,
First of all credits to: Kasyan servetsky
if(my result) my files.remove();
Above code remove the all files in my source folder.
Thanks,
Prabu G
Copy link to clipboard
Copied
Hi,
Try this..
var mySource = Folder.selectDialog("Please select a folder");
var myinddfolder = new Folder("change myDestination path" + "/myDestination"); // Provide your myDestination path
if (!myinddfolder.exists) myinddfolder.create();
var myFiles = mySource.getFiles( "*.indd" );
for ( i = myFiles.length-1; i >= 0 ; i-- )
{
var myResult = myFiles.copy(myinddfolder +"/" + myFiles.name);
}
Copy link to clipboard
Copied
thank you Ananth, thank you for you help.
but is that has a move method for Indesign?
John
Copy link to clipboard
Copied
Why ask when you can see for yourself? InDesign ExtendScript API (12.0) : File.
Copy link to clipboard
Copied
Hi John,
First of all credits to: Kasyan servetsky
if(my result) my files.remove();
Above code remove the all files in my source folder.
Thanks,
Prabu G