Copy link to clipboard
Copied
Hello world,
The name says it all, here are my ideas:
is it possible to set up an "invisible" print only watermark with a script then lock it from being selected?
is it possible to populate a CC library with colors using a script? It would be nice If I could take a script to a coworkers computer, school computer, etc and be able to load up my cc library by adding values of the colors etc.
is it possible to have a script that allows a user to select a set of workspace and set of preferences from a dropdown list and set the interface accordingly?
Is it possible to query all of the links in a given document and produce them on a list and then populate a dialog with the results and be able to select whilch links you would like to replace with which files (and also have the option to leave the current link)?
just a few of my concepts that I am considering pursuing, If anyone knows which ones are are are not achievable with JS and how to do the ones that are I would love to hear from you. Thanks!
is it possible to set up an "invisible" print only watermark with a script then lock it from being selected?
Off the top off my head:
The Document object has BEFORE_PRINT event, so -- theoretically (I never did it in practice) -- it's possible to make a script which, before printing, creates a "watermark" layer (if it doesn't exist yet) with some text or an image placed. Show layer should be off, and Print layer should be on. The "watermark" can be set, say, to Multiply and 30% opacity.
On printing
...Copy link to clipboard
Copied
is it possible to set up an "invisible" print only watermark with a script then lock it from being selected?
Off the top off my head:
The Document object has BEFORE_PRINT event, so -- theoretically (I never did it in practice) -- it's possible to make a script which, before printing, creates a "watermark" layer (if it doesn't exist yet) with some text or an image placed. Show layer should be off, and Print layer should be on. The "watermark" can be set, say, to Multiply and 30% opacity.
On printing choose All layers instead of the default Visible layers.
As a result, the watermark is invisible in InDesign, but visible on the printed output.
is it possible to populate a CC library with colors using a script? It would be nice If I could take a script to a coworkers computer, school computer, etc and be able to load up my cc library by adding values of the colors etc.
As far as I know, it's impossible.
is it possible to have a script that allows a user to select a set of workspace and set of preferences from a dropdown list and set the interface accordingly?
Yes, for example:
app.applyWorkspace("Book");
Is it possible to query all of the links in a given document and produce them on a list and then populate a dialog with the results and be able to select whilch links you would like to replace with which files (and also have the option to leave the current link)?
Yes, it's also possible. However, if you have many links which won't fit the dialog box, you have to develop a 'scrolling window' which can be quite complex. A much easier approach is to get this info into a CSV/TXT/Excel/Access. Then edit it in Notepad/TextEdit/Excel/Access, and finally use it by the script to relink the images.
Hope this helps.
— Kas
Copy link to clipboard
Copied
Thank you so much!
The watermark is a great workaround and a good function to know about.
The CC library thing is a bummer,
Do you know if there is a way to reference a filepath to load the workspace from or does it have to be in the default location? I was hoping to load them from a network drive if possible.
I can see how that could get out of hand very fast with a list of 50+ links, Ill look into that CSV idea.
Much obliged! Liked, helpful, correct answer. ☯
Copy link to clipboard
Copied
For the watermark you can just use the built-in functionality:
Document.watermarkPreferences
CC libraries should automatically synch up once you log into your CC account. It is also possible to share them with other users, achieving just what you wanted.
Copy link to clipboard
Copied