Answered
I thought I'd be clever and create a print mutton menu allowing selectable printing options. This is my code:
var strResult = app.popUpMenuEx({cName:"Character Sheet",cReturn:print({nStart: 0, nEnd: 1})}, {cName:"Summary Sheet", cReturn:print({nStart: 2, nEnd: 2})}, {cName:"Log Sheet", cReturn:print({nStart: 3, nEnd: 3})}, {cName:"Power Cards", cReturn:print({nStart: 4, nEnd: 5})}, {cName:"All", cReturn:print({nStart: 0, nEnd: 5})});
In testing it I'm finding the print is executing before the menu can come up. Am I trying this wrong, because when I cancel I have to cancel 5 times before I see the menu.
cReturn: "2,4",
which would represent the start and end page numbers, parse them out (e.g., using the string.split method), and use them as the nStart and nEnd parameters of a subsequent print statement.
George