JS CS4: Adding graphicline to a specific layer and page
Here is what I have so far (that does not work)
myOutsideGuide_Left = app.activeDocument.layers.item ("Die"). graphicLines.add ();
myOutsideGuide_Left.geometricBounds = ["1 in", "1 in", "2 in", "3 in"];
or
myOutsideGuide_Left = app.activeDocument.pages.item[0].graphicLines.add ();
myOutsideGuide_Left.geometricBounds = ["1 in", "1 in", "2 in", "3 in"];
If I use:
myOutsideGuide_Left = app.activeDocument.graphicLines.add ();
myOutsideGuide_Left.geometricBounds = ["1 in", "1 in", "2 in", "3 in"];
it will produce a line on the active page and layer.
Conundrum: How do I designate the page and layer when creating the graphic line?
There is a beer in for you.
Thank you,
John