Skip to main content
LaurentDesignbureau
Inspiring
July 25, 2021
Question

Is there a way to count pages in an easy way?

  • July 25, 2021
  • 5 replies
  • 2730 views

Hello, I would like to know if there is any help in InDesign to count number of selected pages. I am working on complex documents using different papers, so I have to build this book (320 pages) in blocks that are a multiples of 16. I could not find a fast way to count a portion of pages of the book so I am using a calculator. There might be something I do not see like being able to select a range of pages in the pages window an get the number of pages selected. Thank you...

This topic has been closed for replies.

5 replies

Community Expert
July 26, 2021

Hi Laurent,

if you are interested in a script-only, high-complex code solution, look into this thread from 2017.

Note, that this is not directly a solution to your problem, but this solution could be added by two or three lines of code.

 

active page vs selected page
foltman, Jan 10, 2017

https://community.adobe.com/t5/indesign/active-page-vs-selected-page/m-p/8776559

 

My solution is presented here:

https://community.adobe.com/t5/indesign/active-page-vs-selected-page/m-p/8776565#M35095

 

But best read the whole thread to see how my idea evolved.

 

Regards,
Uwe Laubender

( ACP )

Community Expert
July 26, 2021

Hi Laurent,

it is tricky to get the number of pages selected in the Pages panel.

Even by scripting. But I solved this issue some years ago with ExtendScript (JavaScript).

 

But here is another way doing this in the UI plus a small script, just one line of code, to alert the number of pages selected. Let's see, do it in exactly this order:

 

[1] Select the Page Tool

[2] Select the pages in the Pages panel

The Page Tool reflects this by selecting the same pages in your layout throughout your document.

[3] Run the following ExtendScript (JavaScript) code to alert the number of selected objects:

alert( "Number of selected pages:" +"\r"+ app.selection.length );

 

Example:

 

Regards,
Uwe Laubender

( ACP )

rob day
Community Expert
Community Expert
July 25, 2021

I do not see like being able to select a range of pages in the pages window an get the number of pages selected. 

 

 

You could temporarily open the Pages>MovePages... dialog and subtract the page range numbers. Here I have 74 pages selected (192-118=72):

 

 

The Move Pages... menu item can be invoked via scripting, but I’m not sure if there is a way to get the dialog’s page range via a script

LaurentDesignbureau
Inspiring
July 26, 2021

I suppose the answer to my question is: No
there is no selected-pages-count in the PagesWindow or an other method of counting selected pages somwhere else.
(it seemed so evident that i was shure I was missing something. So please dear Adobe, put it on my wishlist.))
But I am using BookFiles now thanks to your answers!

Community Expert
July 26, 2021

The best place to get this feature noticed by the indesign team is here

https://indesign.uservoice.com/forums/601021-adobe-indesign-feature-requests

 

Thanks

Dave Creamer of IDEAS
Community Expert
Community Expert
July 25, 2021

If you are just concerned about your document being multiples of a 16-page signature for the entire book (rather than each document), you could create a Preflight profile for the book. Change the number of pages to multiples of 16 and you will at least know there is a problem. You can then decide if you want to remove pages (anywhere in the document) or add pages at the end (such as "notes" pages). 

David Creamer: Community Expert (ACI and ACE 1995-2023)
LaurentDesignbureau
Inspiring
July 25, 2021

oh, that's interesting, I did not know about that feature, thank you.

What I really would need is a display of the number of selected pages in the Pages window. Imagine it appearing next to the total number of pages for example.
In this project beside the different paper situation we have many photos to be organised in chapters. I have my client sitting next to me and asking constantly 'how many pages do we have in Chapter Portraits now?'

Dave Creamer of IDEAS
Community Expert
Community Expert
July 25, 2021

Using a book file would be a lot easier as each section would be a separate document, giving you quick page counts. 

 

Be sure to set your book pagination options before you inset any documents into the book. 

David Creamer: Community Expert (ACI and ACE 1995-2023)
Community Expert
July 25, 2021

I'd use the Book Panel

Then you'd have separate documents/files for the 16 pages.

And you insert each file into the Book Panel.

That keeps each 16 pages in blocks. 

I'm assuming you don't want text to flow freely and some text that is supposed be in one type of paper doesn't automatically flow to a different type of paper?

 

If so - the book panel is perfect for you.

https://helpx.adobe.com/indesign/using/creating-book-files.html

 

*edit* alternate method

There might be a way to Script this - where it can apply a Colour Label to every 16 pages in order - so you'd have a visual colour of 16 page blocks in the pages panel.

You can do this manually by selection 16 pages and go to the Pages  panel sub menu

Window>Pages

 

You  might find this view easier to work with

 

Then 

 

 

Eventually your pages look like this

 

A script would be  faster but technically doesn't take long to do 320 pages manually.

 

LaurentDesignbureau
Inspiring
July 25, 2021

I never used the Book files. It always sounded to complicate for my needs but it might be the solution for this project. This book will have a clear separate structure:
1) text pages = Paper 1
2) images = Paper 2
3) seperate images = Paper 3
4) images = Paper 2 again
5) Legends, colophon... = Paper 1 again
(I just hope it will not take to long to learn about Book files)
thank you

Community Expert
July 25, 2021

Definitely a book file is the way forward.