InDesign Scripting - Watermark & Structure Tab Open on Each New File
- October 13, 2023
- 2 replies
- 557 views
Hi all,
I've run into an interesting situation. A while back I was studying how to design and implement InDesign plugins. I spent time studying Adobe's prebuilt jsx files via the Adobe ExtendScript Toolkit and had began working on a few projects of my own.
I wanted to run some jsx scripts to get a glimpse of how they operate in InDesign opposite the code used to build them. I'm not exactly certain which plugin script I ran, however there is one similar to my situation titled 'DocumentWatermark.jsx'. Upon loading in one of the scripts (or maybe I monkied with a script before running it), I seem to have cursed myself inevitably as there is consistently a watermark on each page of every new document I create. This is inoptimal as the watermark prints at full opacity regardless of its lower visual opacity on the document, thus causing issues with the documents I am capable of producing. I also have the structure tab open visually every time I create a new document.
I would like to turn both of these features off if possible. I have a script to turn off the 'confidential' watermark which was provided by another support community thread. The code is simply:
app.activeDocument.watermarkPreferences.watermarkVisibility = false;This can be inserted anywhere and run at any time. However, this only turns off the watermark for the active document and not for each new document.
I also know that I can hide the structure tab with the key command Ctrl + Alt + 1 or by heading to View>Structure>Hide Structure. However I would prefer, if possible, to cease these interactions with each new document.
Anyone have tips on how to fix this?
