Scripting for layer activation/deactivation, colour change and export of PDF
I am new to scripting and have no idea what I am doing... I seek help with developing a script to do the following (if it is possible):
- Activate a particular layer. (e.g. "Black")
- Deactivate a particular layer. (e.g. "CMYK")
- Find/replace all instances of a swatch used as a fill in tables (e.g. Find "Yellow" change to "Grey")
- Export book to PDF (so the dialogue box is shown and I can choose the appropriate options).
Some background on the project...
I have an ID book that contains 40 chapters. Each chapter is one INDD file. Each chapter has a layer named "CMYK" and another "Black". The respective layers contain different versions of artwork as well as background designs that are used in the colour version and the black and white version of the PDF..
Rather than manually activating and deactivating layers on 40 different INDD files, and then running a find/replace colour operation, I would like to be able to streamline the process and run a script where all the changes are made in the background and I am presented with a dialogue box to choose the appropriate export settings for the PDF. Is this possible?
Thank you to community members in advance. This really is not my area of expertise.
