Here’s a script, which automatically creates a set of layers with predefinded names in a given order when you create a new document. And that’s how it works:
- Download and unzip the file “Automatic_Layer_Set_v1.zip“
- Copy the whole Folder (important!!!) to the startup-scripts-folder of InDesign. Where you find this folder is explained in this pdf-file.
- Close and restart InDesign
In the folder “Automatic Layer Set v1″ you will find to layer-set-example-files. You can easily edit those with the texteditor auf your choice. Attache, edit or delete the layers to your liking. You can also easily create new layer-sets! It’s only important that it is a plaintext-file with the ending “.txt” in the folder of the script.
The script has two modes:
- The folder “Automatic Layer Set v1″ contains just one file with the ending “.txt”:
This layer-set will be considered on creation of a new document

- The folder “Automatic Layer Set v1″ contains multiple files with the ending “.txt”:
After pressing the “OK”-button in the “New Document”-dialog a dropdown-menu appears, where you can choose from the layer-sets. If you click “Cancel” a document with the good known “Layer 1″ will be created.

If anybody should be more comfortable if the layer-set-choose-dialog would be in German, just edit the filename of the script from “Automatic_Layer_Set_v1_en.jsx” to “Automatic_Layer_Set_v1_de.jsx”. Then the dialog appears in German.
Once more the download-link of the script: Automatic_Layer_Set_v1.zip
Please write your feedback in the comments! Any idea of improvement is welcome too!
If you find this script useful: twitter, digg or blog it to the rest of the world!
Disclaimer: The script underwent extensive testing in Adobe InDesign CS 3. It always did what it had to do! But i cannot garantuee for anything using this script! The usage of this script is at own risk!




9 Comments
Moinmoin,
Ich würde die Text-Ebene über der Bildebene anordnen. Falls Bildmaterial nämlich Transparenzen enthält, wird der Text beim Export nach PDF/X1 und X3 in Pfade umgewandelt, sofern die Bild-/Transparenzrahmen die Textrahmen berühren.
cooles Script, sehr praktisch
Viele Grüße
Carsten
Die Reihenfolge der Ebenen können individuell in der TXT-Datei geändert werden. Genauso können Ebenen hinzugefügt oder entfernt werden.
Gruß Manu
Great script, thanks.
I have a problem when i use your script in cs4:
Error number 775
A layer with the same name exist already
Ligne 67
myDoc.layers[0].name = myLayerNames[i];
i click ok and the layers are create.
For information i use the “french cs4 version”
I found the solution:
if someone have the same problem :
closed indesign, choose the script again and create a new document.
After that the error message is gone and everything works great…
error message
“this file is already opened by another user or another application. This file may be stored on a network server and cannot be opened until the other user closes it”
I get this message when placing files with shortcut (command D)
Any Fix?
David
I have placed the folder in my InDesign Script Startup Folder but after pressing the “OK”-button in the “New Document”-dialog; I do not get a layer set or Drop down menu to choose a layer set. Can you tell me what I am doing wrong?
Thank you for this script.
For the next version, is it possible to specify the layer color ?
Hallo Herr Hollert,
ist es möglich dieses geniale Script an Indesign CS5 anzupassen? Ich nutze es schon seit längerem unter CS4 und es arbeitet klaglos. Unter CS5 verabschiedet sich Indesign nach dem Auswahldialog des Scripts.