A correction to the report: I just learned that currDoc.preflightOptions.preflightScope = "1-2"; changes the UI preflight panel's scope and not the script-run preflight's scope. When running preflight from script, the scope should be defined in the preflightProcesses.add() method:
var pfProcess = app.preflightProcesses.add(currDoc, pfProfile,{preflightScope:"1-2"});
However, this ticket is still valid, because that argument does not work and InDesign always preflights the whole document.
A correction to the report: I just learned that currDoc.preflightOptions.preflightScope = "1-2"; changes the UI preflight panel's scope and not the script-run preflight's scope. When running preflight from script, the scope should be defined in the preflightProcesses.add() method:
var pfProcess = app.preflightProcesses.add(currDoc, pfProfile,{preflightScope:"1-2"});
However, this ticket is still valid, because that argument does not work and InDesign always preflights the whole document.