4 Replies Latest reply on Apr 2, 2009 9:20 AM by Kasyan Servetsky

    [JS] checking type of pageItem

      Hello, is there any way to check in JavaScript what is the type of some PageItem. For example I have a Rectangle, and when I try to do it that way it return useless information:

      alert(app.activeDocument.pageItems.item(0).constructor.name);

      The result is "PageItem" :/

      In VBScript it is very easy, I can use TypeName() function, but i need this script working on MacOS.

      Can anyone help me????
      Thanks in advance