I'm trying to design a script to select layers by a given name. And then PDF layer1 (base) and certain items that are on each layer 1 at a time so I have multiple different pages. But the PDF thing doesn't seem to be much of an issue. I just can't select the layer by name.
This is what I have so far:
var myDocument = app.documents;
var circusLayer = myDocument.layer[Circus];
circusLayer.visible = false;