Skip to main content
Inspiring
January 22, 2010
Answered

Reorder Layers

  • January 22, 2010
  • 2 replies
  • 984 views

I need to change the order of layers with javasscipt in Indesign.

Basically the Layer i just added in the script, I want to become the last layer(bottom layer) not the top layer which it becomes when i add it.

- Thanks

This topic has been closed for replies.
Correct answer Jongware

Very nice, where do i find that?


http://www.jongware.com/idjshelp.html

A HTML version for all platforms, but much better is the CHM version (see the thread I referred to for a Mac CHM viewer).

2 replies

pkrkAuthor
Inspiring
January 22, 2010

Awesome thanks!

What are some good resources for me to find/check syntax like that...

I haven't found much sample code like "LocationOptions.AT_END"

Thank you!

Jongware
Community Expert
Community Expert
January 22, 2010

If you don't mind me tooting my own horn: Is there an InDesign JavaScript Reference?

Tab "Index" -> type "lay" -> select "Layer" -> Click "move", see this:

rather than the ESTK: "Help" -> "Object Model Viewer" -> dropdown "Adobe InDesign CS4 (6.0) Object Model Object ...(??)" -> Search "layer" -> scroll down to "Layer" -> scroll down list "Properties and Methods" -> click "move", see this:

pkrkAuthor
Inspiring
January 22, 2010

Very nice, where do i find that?

Kasyan Servetsky
Legend
January 22, 2010

var myDoc = app.activeDocument;
var myLayer = myDoc.layers.add({name:"Test"});
myLayer.move(LocationOptions.AT_END); // move to the bottom