Apply masterpage
The script can change a masterpage depending on a specific paragraph style or an existing masterpage. It can change odd, even, any or previous pages.
You can use the script on an entire book by using the Process book option.
The Keep book docs open option will keep the processed book documents open instead of closing them.