Article View: adobe.scripting.indesign
Article #20779Re: Visible bounds of the images? AppleScript
From: Olivier Berquin
Date: Thu, 06 Jun 2002 10:15
Date: Thu, 06 Jun 2002 10:15
34 lines
1779 bytes
1779 bytes
Hi Kari, I begin to script in InDesign. I try a lot of 'properties', and I have a little piste for you. Create a document and place an image on it, and try the script below Look the difference between: 1) MyBoxBounds and 2) MyImageBounds The first one represent the bounds of the 'rectangle', the second one is the bounds of the image inside this rectangle. -- tell application "InDesign 2.0" �tell document 1 ��tell page 1 ���tell item 1 ����set MyPageItemProp to properties of it ���end tell ��� ���tell all page items of MyPageItemProp ����set MyPageItem1Prop to properties of item 1 of it ����set MyBoxBounds to geometric bounds of MyPageItem1Prop ����set MyPageItem2Prop to properties of item 2 of it ����set MyImageBounds to geometric bounds of MyPageItem2Prop ���end tell ��end tell �end tell end tell -- Hope that helps ! Olivier.
Technical Details
Message-ID:
<ef88799.0@WebX.aaQKaf7vad4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!newsfeed.wirehub.nl!newsfeeds.belnet.be!news.belnet.be!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef88799.-1@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,70369cde4a1b896a X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-06-06 03:39:30 PST From: "Olivier Berquin" <ob@microscript.be> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!newsfeed.wirehub.nl!newsfeeds.belnet.be!news.belnet.be!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Visible bounds of the images? AppleScript Message-ID: <ef88799.0@WebX.aaQKaf7vad4> Date: Thu, 6 Jun 2002 03:15:43 -0700 References: <ef88799.-1@WebX.aaQKaf7vad4> Lines: 43 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit