Article View: adobe.scripting.indesign
Article #8313Re: resize all pictures to page margin and apply Object Style
From: Dave_Saunders
Date: Tue, 17 Oct 2006 13:40
Date: Tue, 17 Oct 2006 13:40
9 lines
916 bytes
916 bytes
That's because you're applying to the graphic and not the frame.
Change that last line to:
myGraphic.parent.applyObjectStyle(myDoc.objectStyles.item("pics"));
The fit works because that involves both the object and its frame, so you can apply it to either and get the same result.
Dave
Technical Details
Message-ID:
<3bc1fea1.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc1fea1.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,9908d369be80b7b9 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: resize all pictures to page margin and apply Object Style Message-ID: <3bc1fea1.0@webcrossing.la2eafNXanI> Date: Tue, 17 Oct 2006 06:40:53 -0700 References: <3bc1fea1.-1@webcrossing.la2eafNXanI> Lines: 10 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing