Skip to main content
Participant
December 15, 2010
Question

script to create a template layer & then add a layer? Possible?

  • December 15, 2010
  • 2 replies
  • 2166 views

Hello, I am just starting to learn javascript and would like to know if it's possible to do the following:

  1. Open multiple .tiff or .jpg files into illustrator
  2. On each file's layer 1, template = yes (it's a check box) and click OK
  3. Add new layer 2, click OK
  4. Save file
  5. Close file

I tried creating an action to do this, but it does not work. I am doing some illustrator and photoshop work which has quite a lot of repetitive tasks & I know a script would be a huge timesaver.  This is just one of several scripts that I'd like to learn how to write.  Thanks very much for reading this post and for your help.  Best, Nancy

This topic has been closed for replies.

2 replies

o-marat
Inspiring
November 11, 2016

NYC_Nancy, hello!

What you do not specifically work?

Which of the above points, you can not describe in the script?

Jongware
Community Expert
Community Expert
December 16, 2010

That's odd. According to the JS Object Model Viewer, you can change about everything in the standard Layer Option dialog using a script (print, preview, locked, visible, and even "dimPlacedImages") but not ... "template".

Inspiring
November 10, 2016

is there a change to this? i'm trying to do the same.

Silly-V
Legend
November 10, 2016

You can use an action to do this. (play action with your script)