• 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 find folio order

Contributor ,
Jan 31, 2016 Jan 31, 2016

Copy link to clipboard

Copied

Hi all,

Please suggest me, how to find out indesign cs6 files linked in folio correct order through scripting. (very urgent friends)

Advanced Thanks

TOPICS
Scripting

Views

382

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

Enthusiast , Jan 31, 2016 Jan 31, 2016

Hi Karthik,

Use the below code, Report will saved in Indesign location with re folio order.

   

var myDoc = app.activeDocument;

var myFilePath = myDoc.filePath;

var myDocName = myDoc.name.replace(".indd", "_report.txt")

//~ alert("myDocName: " + myDocName)

myArray = new Array();

var myPages = app.activeDocument.pages;

//~ alert(myPages.length)

pageNumber = 0;

for(i=0; i<myPages.length; i++)

{

var myDocumentPage = myPages.name;
pageNumber++

   

   if(myDocumentPage == p

...

Votes

Translate

Translate
Enthusiast ,
Jan 31, 2016 Jan 31, 2016

Copy link to clipboard

Copied

LATEST

Hi Karthik,

Use the below code, Report will saved in Indesign location with re folio order.

   

var myDoc = app.activeDocument;

var myFilePath = myDoc.filePath;

var myDocName = myDoc.name.replace(".indd", "_report.txt")

//~ alert("myDocName: " + myDocName)

myArray = new Array();

var myPages = app.activeDocument.pages;

//~ alert(myPages.length)

pageNumber = 0;

for(i=0; i<myPages.length; i++)

{

var myDocumentPage = myPages.name;
pageNumber++

   

   if(myDocumentPage == pageNumber)

{
    continue;
    }
else
{
    var pageNumber = myDocumentPage;
    alert( "Error in Page Sequence: " + myDocumentPage + "\rReport also Generated in Document Location")
    myArray.push(myDocumentPage)
  
    }
}

var myTextFile = new File(myFilePath + "/" + myDocName);

myTextFile.open("w")

if(myArray.length ==0)

{

alert("No Error in Page Sequence")
myTextFile.write("No Error in Page Sequence" )
myTextFile.close();
}

else

{

myTextFile.write("Error in Page Sequence: " + myArray)
myTextFile.close();
}

alert("Process Completed")

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