🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #670

Re: [JS, CS3] How can I deselect text?

#670
From: Peter Kahrel
Date: Fri, 06 Mar 2009 20:22
10 lines
938 bytes
You place the cursor somewhere by selecting that insertion point. It could be something like this: 

      app.selection[0].insertionPoints[-1].select()




To get the cursor at the end of your selection and deselect whatever was selected. To leave the cursor at the beginning of whatever was selected, use [0] instead of [-1].

Peter
Technical Details
Message-ID: <59b82552.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b82552.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,6016283e045d7445
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Peter Kahrel" <kahrel@kahrel.plus.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [JS, CS3] How can I deselect text?
Message-ID: <59b82552.0@webcrossing.la2eafNXanI>
Date: Fri, 6 Mar 2009 12:22:04 -0800
References: <59b82552.-1@webcrossing.la2eafNXanI>
Lines: 9
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit