Question
[JS] (CS2) (CS3) Test for container
Hello,
I would like to make sure that whatever I have selected (app.selection) is the container and NOT the content, regardless of what the selection is (Item or Text). I know if you have multiple selections, you can only have objects and that is fine. But what if my selection is a rectangle placed in a textframe within a textframe, how do I reset the selection to be the be the OBJECT which contains all?
Thank you.
I would like to make sure that whatever I have selected (app.selection) is the container and NOT the content, regardless of what the selection is (Item or Text). I know if you have multiple selections, you can only have objects and that is fine. But what if my selection is a rectangle placed in a textframe within a textframe, how do I reset the selection to be the be the OBJECT which contains all?
Thank you.