How do I apply a Script to Master Pages?
Hello,
Please can anyone tell me how to run or edit this script correctly?
I have a simple Find and Replace script that ran perfectly on CS2. Now I am running in CS4 and only the first part of the script works which applies the documents pages, but the second part, which applies to the master pages, does not.
I tried running the CS2 script from “Adobe\InDesign\Version 6.0\en_US\Scripts\Scripts Panel\Version 4.0 Scripts” and it still does not work on the master pages.
Thank you!
// Dialog box request Section Information
var mySectionName = prompt ('What is the Section Title?', 'Title', 'Assign Section Title');
var myCompanyName = prompt ('What is the Client Company Name?', 'Title', 'Assign Company Name');
// Create section template by applying Section Name
app.findPreferences = app.changePreferences = null;
// Document Pages - Apply Section Title
app.activeDocument.search('Section Name', false, true, mySectionName);
// Master Pages - Apply Company Name
app.activeDocument.search('Company Name', false, true, myCompanyName);