Article View: adobe.scripting.indesign
Article #133Re: [JS] checking type of pageItem
From: stefan123
Date: Thu, 02 Apr 2009 16:36
Date: Thu, 02 Apr 2009 16:36
5 lines
797 bytes
797 bytes
OK, I've found a solution, but I'm not sure if it is always correct. I'm using: alert(app.activeDocument.pageItems.item(0).getElements()[0].constructor.name); Can someone more expirienced confirm this solution?????
Technical Details
Message-ID:
<59b87b76.1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b87b76.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,1898028eb4bd8c65 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: stefan123@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: [JS] checking type of pageItem Message-ID: <59b87b76.1@webcrossing.la2eafNXanI> Date: Thu, 2 Apr 2009 09:36:43 -0700 References: <59b87b76.-1@webcrossing.la2eafNXanI> Lines: 7 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit