Article View: adobe.scripting.indesign
Article #19694Re: Returning the current cursor postion?
From: Olav Kvern
Date: Sun, 24 Nov 2002 19:54
Date: Sun, 24 Nov 2002 19:54
11 lines
1537 bytes
1537 bytes
Wei-- What you're looking for is the Selection object, which exists on both the Application object and the Document object. In general, I use Application.Selection, as it's the selecion of the front most object. Selection is a collection that contains 0, 1, or more objects. The objects can be PageItem (Rectangle, Oval, Line, TextFrame, etc.), Text, or InsertionPoint objects. All of these objects contain information about where they are on the page--or, in the case of text objects, where they appear in a story. Does this answer your question? If not, tell me more about what you want to do, and I'll post a code snippet. Many of the examples in the Scripting Guide (or in this forum) work with the Selection object. Thanks, Ole
Technical Details
Message-ID:
<1de6ba73.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de6ba73.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c229c6d32f2785e8 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-11-24 12:07:35 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Returning the current cursor postion? Message-ID: <1de6ba73.0@WebX.la2eafNXanI> Date: Sun, 24 Nov 2002 11:54:00 -0800 References: <1de6ba73.-1@WebX.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit