Selecting area based on artboard bounds
Is there a way with a script to select all objects on an artboard, fit the artboard to those objects, then exclude from that selection any objects that are within a specified distance from the new perimeter of the artboard? Or really anything that gets me closer to this as an end result?
For instance, I have a number of paths/objects in the center of my artboard that I would like to select but have registration marks and notes within a 1/2" from the edge of the artboard, could I select these interior objects and leave out the registration marks with a script?
I have found a few scripts that can search and select by element size/appearance but not any that select based on artboard boundaries. Not sure if this is even possible.
Thank you!