3 Replies Latest reply on Sep 5, 2011 3:40 PM by Ken Krugh

    [CS2] [VB] How can I determine the object type of a PageItem ?

    Tony Hedge

      I use InDesign CS2 and VBScript

       

      As I loop down the PageItems in a Page, I need to determine the Object Type (TextFrame, Group, GraphicLine ...) of each PageItem and process accordingly.

       

      Is there a VBS method/function that wiil return the Object Type of an object either as a string or a value. Or do I have to check for the existance/non-existance of a particular property associated with a particular object type in order to do this?

       

      Alternatively is there a JavaScript function that will do this that I can call from the VBscript?