Article View: adobe.scripting.indesign
Article #14868[AS] How to get the offset of a picture?
From: Armin.Egginger
Date: Thu, 15 Jan 2004 07:47
Date: Thu, 15 Jan 2004 07:47
23 lines
1883 bytes
1883 bytes
Hi Scripter,
I try following
1. Get all Images of a InDesign document
2. Get the scale, size, angle, path, name,.... and the size, angle also from the parent frame
3. Put this informations in a filemaker database
4. If I need some pictures again I make a new document per AppleScript and put all current records (images which are in the filemaker database) on the new document with the same properties.
My Problem is, that I didn't find a way to fix the offset of the image in the rectangle. The position of the rectangle isn't the same as in the origin, so the geometric bounds are different to the origin.
I thought I've to calculate following:
1. geometric bounds of the rectangle - geometric bounds of the image = {offset1, offset2, offset3, offset4}
2. make a rectangle and place the picture in it
3. get the geometric bounds of the rectangle and subtract the offsets
4. put the properties of the image to the new geometric bounds
This doesn't funktion - why? Do I have to go another way? In Quark it is easier in understanding, because there is a offset in the properties - is it also available in InDesign (I'm blind?)?
pls help
many thanks in advance
Armin
Technical Details
Message-ID:
<2ccf6124.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,8bb5e41da3bf40b6,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-15 00:07:42 PST From: Armin.Egginger@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: [AS] How to get the offset of a picture? Message-ID: <2ccf6124.-1@webx.la2eafNXanI> Date: Wed, 14 Jan 2004 23:47:16 -0800 Lines: 31 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit