Get Page Count

Version 01.08.00
Added 15 Dec 2006 (last updated 10 Dec 2023)

For use with Sibelius 4, Sibelius 4.1, Sibelius 5, Sibelius 6, Sibelius 7.1, Sibelius 7.5, Sibelius 8.x, Sibelius 18.x, Sibelius 19.x, Sibelius 20.x, Sibelius 21.x, Sibelius 22.x, Sibelius 23.x and Sibelius 24.x

__Get Page Count stores the number of pages in a score (at the time the plug-in is run) into the Other Information field of the File > Score Info. This makes the number of pages available for use in text fields (such as \"Page x of y\") if the $MOREINFO wildcard is used. The full text would be \"Page $PAGENUM of $MOREINFO\". If the number of pages changes, the plug-in should be rerun, but any wildcards will be automatically updated. __Updated 4 April 2010. In Sib 6 or later, the plugin will store the page count both in the full score and in each part, so a footer containing the MOREINFO wildcard will be correct in the parts. __Updated 5 April 2010 to allow you to specify different Score Info locations for the page count data. __Updated 21 June 2012 to allow count to exclude Special Page Break title pages and following blank pages. __ As of Sibelius 7.1.3, you can use the NumPages wildcard, and this plugin should not be needed. ____Updated 10 December 2023. Version 01.08.00. This update adds a fixed offset adjustment to the number of pages, after discovering that in some cases the plugin gets the wrong answer when determining the number of title and other blank pages before the first bar in the score. If the full score and every part have the same number of leading blank pages, you can use the offset instead of the title page adjustment. In that case use a negative adjustment. Since the plugin processes the full score and all parts, this will not help if the score and parts have different numbers of leading blank pages. __The traced outputs gives more information about the number of pages the plugin is detecting. __My current impression is that some bug in Sibelius is confusing the number of blank pages.

Plug-in written by Bob Zawalich.