Article View: adobe.scripting.indesign
Article #18624Move with reference point?
From: Stu Duncan
Date: Fri, 07 Mar 2003 14:32
Date: Fri, 07 Mar 2003 14:32
13 lines
1611 bytes
1611 bytes
Hi, I'm hoping someone can help me. I am trying to do a very simple, repetitive thing. I want to move the page # to the bottom left corner of the page. It needs to have it's bottom left anchor be 2p5, 63p5. Move doesn't seem to be able to deal with anchors or be aware of what's set as the anchor. It always uses the top left anchor. I would try using geometric bounds, but since the size of the number changes, I only want the bottom left corner to be static. Anyone have any ideas?
Here's the script I'm using:
tell application "InDesign 2.0.1"
set mySelection to selection
set transform reference point of window 1 to bottom left anchor
move mySelection to {"2p5", "63p5"}
end tell
Move ignores the transform reference point. How can I get around it? I would love it if I could change window 1 to mySelection, but InDesign doesn't like that.
Thanks for any help,
Stu
Technical Details
Message-ID:
<1de83003.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!newsfeed.tpinternet.pl!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,32ab0dc367c85ce0,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-03-07 06:37:43 PST From: "Stu Duncan" <sduncan@themailbox.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Move with reference point? Message-ID: <1de83003.-1@WebX.la2eafNXanI> Date: Fri, 7 Mar 2003 06:32:51 -0800 Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit