4 Replies Latest reply on May 27, 2016 12:42 AM by tpk1982

    Easy way to show only certain types of pages?

    mlondon88 Level 1

      I had posted this in the regular InDesign forum, but perhaps one of you scripting gurus has a suggestion?

       

      Easy way to show only certain types of pages?

       

      Thank you...

        • 1. Re: Easy way to show only certain types of pages?
          tpk1982 Level 4

          I am using this script to see pages by the reference of master pages selection. For example i have 10 different master pages and those are applied randomly in the inner pages, i want to see particular page applied by particular master page then we can use this script

           

          masterlist = app.activeDocument.masterSpreads.everyItem().name;
          masterDialog = app.dialogs.add ({name:"Select Your Master",canCancel:true});
          with (masterDialog)
          {
                    with (dialogColumns.add())
                    {
                              with (dialogRows.add())
                              {
                                        listbox1 = dropdowns.add ({stringList:masterlist, selectedIndex:0});
                              }
                    }
          }
            if (masterDialog.show())
          {
                    selectedName = masterlist[listbox1.selectedIndex];
                   
                    pages = [];
                    for (i=0; i<app.activeDocument.pages.length; i++)
                             
                              if (app.activeDocument.pages[i].appliedMaster != null &&
                                        app.activeDocument.pages[i].appliedMaster.name == selectedName)
                                        pages.push (app.activeDocument.pages[i].name);
                   
                   
                    printpages = pages.join(",");
                 
                app.activeDocument.printPreferences.pageRange = printpages;
                   
                app.activeDocument.print (true);
          }
          
          • 2. Re: Easy way to show only certain types of pages?
            karthiks94217840 Level 2

            Hi TPK,

             

            Your script working super . All most your are rock

             

            Thanks

            • 3. Re: Easy way to show only certain types of pages?
              karthiks94217840 Level 2

              Hi TPK,

               

              How to export RTF format for section range of pages. (set of section range )

               

              Thanks in Advance