What's the value for "pageNumber"?
I used this line to get the page number
pageNumber = myDocument.pages.item(1).name
I only want to save the first page as a JPEG. Many of our documents have
multiple pages but I only need the first one.
Is there a prefix on the page name?
Try changing the numbering to absolute and then run the script. Does that help?
There is no prefix on the page number.
I changed it to an absolute of "1" and the Export preference still
stayed at a range of All (see screen shot)
I don't think you understood me. Change the page numbering preferences to absolute.
(i.e. app.generalPreferences.pageNumbering = PageNumberingOptions.ABSOLUTE)
Right, I did not understand what you meant.
With that direction I used this line to set the Page Numbering Option ...
myInDesign.GeneralPreferences.PageNumbering = 1096971116
And this line to set the Export Range ...
myInDesign.JPEGExportPreferences.jpegExportRange = 1785742674
Thank you so much for your assistance. It all works perfectly now.