• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to move InDesign file

Contributor ,
Jul 26, 2017 Jul 26, 2017

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

TOPICS
Scripting

Views

473

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Jul 26, 2017 Jul 26, 2017

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

Votes

Translate

Translate
Engaged ,
Jul 26, 2017 Jul 26, 2017

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);

}

Thanks,
Prabu
Design smarter, faster, and bolder with InDesign scripting.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 26, 2017 Jul 26, 2017

Copy link to clipboard

Copied


thank you Ananth, thank you for you help.

but is that has a move method for Indesign?

John

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 26, 2017 Jul 26, 2017

Copy link to clipboard

Copied

Why ask when you can see for yourself? InDesign ExtendScript API (12.0) : File.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 26, 2017 Jul 26, 2017

Copy link to clipboard

Copied

LATEST

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

Thanks,
Prabu
Design smarter, faster, and bolder with InDesign scripting.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines