I'm using Javascript for InDesign scripting.
I have an image object and want to know it's bounds (the one that the user sees) -
bounds = (geometricBounds in image.parent)? image.parent.geometricBounds: image.geometricBounds;
returns ReferenceError - geometricBounds is undefined
. This error comes when the parent to the image is an Oval object (So, I know geometricBounds property is there for an Oval object).
The problem is in (geometricBounds in image.parent)
because when I alerted this statement, I got the same error. I'm surely missing something - because if this is not a property then I should simply get a false.
Any one knows why this is happening?