Article View: adobe.scripting.indesign
Article #291Re: CS3 JS flag which page has empty frame
From: Dave_Saunders
Date: Fri, 20 Mar 2009 11:48
Date: Fri, 20 Mar 2009 11:48
9 lines
1228 bytes
1228 bytes
Hi John, I don't understand why you're selecting with your script. You only need to reference the rectangle to operate on it. But you've made up the property "rectangle" for myGraphic. Look in the OMV and you'll see that graphics don't have rectangle properties. I think you want the parent there--remember, a graphic could be in a polygon or oval or even a graphic line. There are a small number of actions that require selecting, but not very many. The main reason for using a selection is to show the user what you just did, but you're in a loop so selecting seems completely pointless. Dave
Technical Details
Message-ID:
<59b83b3d.5@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.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!news2.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.5@webcrossing.la2eafNXanI> Date: Fri, 20 Mar 2009 04:48:20 -0700 References: <59b83b3d.-1@webcrossing.la2eafNXanI> Lines: 16 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit