Article View: adobe.scripting.indesign
Article #334Re: CS3 JS flag which page has empty frame
From: Dave_Saunders
Date: Thu, 26 Mar 2009 13:13
Date: Thu, 26 Mar 2009 13:13
15 lines
1353 bytes
1353 bytes
John, You're confusing Graphic.geometricBounds in the OMV, which tells you that a graphic object has the geometricBounds property, with how to address said graphic in a specific instance. Pages do not have a graphics (note plural) property, although they do have an allGraphics property (which gives you a list of all of them on the page). Typically, when you're looking for a specific graphic in the fashion you're doing, you need to get at it via the frame that holds it. Assuming it's a rectangle, you might write: myPages[j].rectangles[0].graphics[0].geometricBounds; even though the rectangle can only have one graphic, it is still a collection of one and can't be addressed using the singular form. Dave
Technical Details
Message-ID:
<59b83b3d.12@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b83b3d.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,5f85c25f887dafb2 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: CS3 JS flag which page has empty frame Message-ID: <59b83b3d.12@webcrossing.la2eafNXanI> Date: Thu, 26 Mar 2009 06:13:24 -0700 References: <59b83b3d.-1@webcrossing.la2eafNXanI> Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit