🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1558

Findout Page coordinates of a frame.

#1558
From: Alex_Zedd
Date: Fri, 30 Jan 2009 16:25
16 lines
1280 bytes
Hello.

Writing Java scripts for the Indesign CS3.
Enumerate through the xml content and get the image and text frames.
Need to detect Page coordinates of them.

When I wrote the same code in c++, I was get pasteboard coordinates of the rectangle and page, substract results and get necessary shift for rectangle coordinates. But now, when I use a script, I do not know, how to get pasteboard coordinates of the page.

For Frames I have find out the string:

"myFrame.resolve([[myFrame.bounds[1], myFrame.bounds[0]], AnchorPoint.TOP_LEFT_ANCHOR], CoordinateSpaces.PASTEBOARD_COORDINATES);"

But even here I'm not sure in the right order of the bounds[0 & 1].
How to get the page coordinates of a frame?

Thank's for your notice.
Technical Details
Message-ID: <59b7bc35.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,5b97fa43591bf10e,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Alex_Zedd@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Findout Page coordinates of a frame.
Message-ID: <59b7bc35.-1@webcrossing.la2eafNXanI>
Date: Fri, 30 Jan 2009 08:25:42 -0800
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit