Whose script is it? Do you have permission to republish? Can the person who wrote the original help you?
I'm not totally sure where I got it from or who orinially wrote it, but it was an open source website, it may have been InDesign Secrets.
Might it be Scott Zanelli's PageExporterUtility.
— GNU general public license.
That rings a bell.
Do you know how I can get hold of him to see if he would be so kind as to help me out?
I don't sorry, perhaps a member here could. According to the license:
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)