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

I have a fairly wide array of ideas... which ones are achievable with javascript?

Explorer ,
Mar 17, 2017 Mar 17, 2017

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!

TOPICS
Scripting

Views

753

Translate

Translate

Report

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

Guru , Mar 18, 2017 Mar 18, 2017

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.

18-03-2017 13-41-32.png

On printing

...

Votes

Translate

Translate
Guru ,
Mar 18, 2017 Mar 18, 2017

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.

18-03-2017 13-41-32.png

On printing choose All layers instead of the default Visible layers.

18-03-2017 13-23-39.png

As a result, the watermark is invisible in InDesign, but visible on the printed output.

18-03-2017 14-02-17.png

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

Votes

Translate

Translate

Report

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 ,
Mar 20, 2017 Mar 20, 2017

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. ☯

Votes

Translate

Translate

Report

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
Advisor ,
Mar 20, 2017 Mar 20, 2017

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.

Votes

Translate

Translate

Report

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
LEGEND ,
Mar 20, 2017 Mar 20, 2017

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

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