Article View: adobe.scripting.indesign
Article #696Re: Help writing Extendscript to fit photos to frames in InDesign
From: pd
Date: Mon, 09 Mar 2009 21:38
Date: Mon, 09 Mar 2009 21:38
26 lines
2463 bytes
2463 bytes
On Mar 9, 10:46 am, Steve_Gib...@adobeforums.com wrote: > Totally new to the concept of Extendscript so it's greek to me; but, I have an InDesign template containing 40 photos as a sort of "template" we use for funeral home clients; it display pictures in an album we print. Still, I have to go page by page after relinking to new photo sets, select all for that page, fit and center. > > For the open document I want to fit the photos to pre-existing frames proportionally (fit proportionally), then center content--all for all 40 frames. (Note: there are other graphic frames and content, but I think a simple catch-all that manipulates all non-text would still work. Even if it manipulated text I could live with it). > > Anyone able to help? Thanks if so! Once you have the fitting properties set on the container, you have to call the fit() function on that container after re-linking an image. I know it sounds stupid, but there it is: myObject.itemLink.relink(File(...)); myObject.parent.fit(FitOptions.APPLY_FRAME_FITTING_OPTIONS); I would have expected the fit properties of the frame to be applied automatically, but that's not what InDesign CS4 does. -pd
Technical Details
Message-ID:
<ee5b90ec-594f-4ac9-b4a9-fa33ca6e5b6d@j12g2000vbl.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!j12g2000vbl.googlegroups.com!not-for-mailReferences:
<59b8298a.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,e34c0332d694bd75 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!j12g2000vbl.googlegroups.com!not-for-mail From: pd <pfdavis@gmail.com> Newsgroups: adobe.scripting.indesign Subject: Re: Help writing Extendscript to fit photos to frames in InDesign Date: Mon, 9 Mar 2009 14:38:33 -0700 (PDT) Organization: http://groups.google.com Lines: 26 Message-ID: <ee5b90ec-594f-4ac9-b4a9-fa33ca6e5b6d@j12g2000vbl.googlegroups.com> References: <59b8298a.-1@webcrossing.la2eafNXanI> NNTP-Posting-Host: 66.150.206.225 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1236634713 28403 127.0.0.1 (9 Mar 2009 21:38:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 9 Mar 2009 21:38:33 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j12g2000vbl.googlegroups.com; posting-host=66.150.206.225; posting-account=G2l8pgoAAABQYixzPXgqN3qQugbP4n5s User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.7) Gecko/2009021906 Firefox/3.0.7,gzip(gfe),gzip(gfe)