Why isn't this script for drawing guides
Frequently I use nice neat guides for laying out objects and text in my InDesign document.
So, I thought I might create a simple script that would draw guides on my actively selected page of my InDesign file in certain proportions.
But it's not working! I don't know exactly why other than that I'm pretty sure I didn't call the active page width and height correctly. It's important that this script is generated on whatever the "active" page is, because it could be any page of a document, and different pages might use different proportions for laying things out, like 20% of the document's height at a time.
Here's part of a script for attempting to draw those guides
This is the only component of my script that doesn't work. And it probably doesn't work because I didn't correctly call the actively selected page width and height, so how do I do that?
