Article View: adobe.scripting.indesign
Article #17727Re: AS "Object reference" and soft return issue
From: Dave Saunders
Date: Tue, 20 May 2003 12:58
Date: Tue, 20 May 2003 12:58
26 lines
1783 bytes
1783 bytes
Roy, This pseudo script (you actually can run it) answers your question, I think: tell application "InDesign 2.0.2" set myStory to parent story of selection set myIndex to index of insertion point 1 of selection set myPara to object reference of paragraph 1 of selection set contents of insertion point 1 of selection to forced line break end tell myStory is a reference because asking for the parent story returns a reference and not the contents. myPara is an object reference to the paragraph because that's what I asked for. If you look in the InDesign dictionary, you'll see that most text items have as a property object reference. The formal name for "software carriage return" is forced line break. I included setting an index because that's one way of referencing into a story. You can say something like: set contents of insertion point myIndex of myStory to "A" or set contents of character myIndex of myStory to "A" Dave
Technical Details
Message-ID:
<1de931ca.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de931ca.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,d068f2c50778e095 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-20 06:08:29 PST From: "Dave Saunders" <daves@pdsassoc.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: AS "Object reference" and soft return issue Message-ID: <1de931ca.0@WebX.la2eafNXanI> Date: Tue, 20 May 2003 05:58:52 -0700 References: <1de931ca.-1@WebX.la2eafNXanI> Lines: 31 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit