Event listener to check slug area
I'm trying to write an event listener for opening documents to check slug area on the left and I can't get around a piece
But I keep getting an error that the object does not exist.
I am flummoxed and it might be a bit beyond me at this point.
Even this is not working for me
var doc = app.activeDocument;
var slugBounds = doc.documentPreferences.slugBounds;
if (slugBounds[1] < 130) {
alert("The left slug area is less than 130mm.");
}

