Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
8

InDesign Scripting - Watermark & Structure Tab Open on Each New File

Explorer ,
Oct 13, 2023 Oct 13, 2023

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?

TOPICS
Bug , How to , Scripting
554
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 13, 2023 Oct 13, 2023

Try targeting the application, not a document:

app.watermarkPreferences.watermarkVisibility = false;
Translate
Community Expert ,
Oct 13, 2023 Oct 13, 2023

Try targeting the application, not a document:

app.watermarkPreferences.watermarkVisibility = false;
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 13, 2023 Oct 13, 2023
LATEST

Hey Peter,

Thank you for the tip! I didn't see your message until after I had made some troubleshooting attempts of my own. As cursed as it sounds, I'm attempting to replicate the issue again to see if this is a fix however I cannot seem to get this problem to reoccur. Hopefully this snippet is a fix for anyone who has a similar problem!
Thank you for your help!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 13, 2023 Oct 13, 2023

Uninstalling InDesign, removing old preferences and reinstalling the program cleared this problem for me, however if anyone has insight onto how to solve something like this, it would be appreciated.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines