Article View: adobe.scripting.indesign
Article #669[JS, CS3] How can I deselect text?
From: Len_Swierski
Date: Fri, 06 Mar 2009 20:07
Date: Fri, 06 Mar 2009 20:07
7 lines
1091 bytes
1091 bytes
Hi fellow scripters, I just wrote a script that works beautifully, finding a portion of text within a selection and replacing it with a variable. However, at the end of the script it leaves the new text selected. Is there a way to deselect this and leave the cursor at the end of the new text? I tried to use SelectionOptions.REMOVE_FROM but it gives me an error stating that 'Remove from Selection' option not supported for this object type. What could I be doing wrong? Thanks for any help. Regards, Len Swierski
Technical Details
Message-ID:
<59b82552.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,6016283e045d7445,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Len_Swierski@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [JS, CS3] How can I deselect text? Message-ID: <59b82552.-1@webcrossing.la2eafNXanI> Date: Fri, 6 Mar 2009 12:07:43 -0800 Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit