Article View: adobe.scripting.indesign
Article #2292Re: Change text problem CS3
From: jongware
Date: Mon, 22 Dec 2008 20:50
Date: Mon, 22 Dec 2008 20:50
11 lines
1593 bytes
1593 bytes
Not true.
You are working in a script language. That translates "\t" to a tab while the script is being parsed, and (apparently) the tab survives the translation into the 'real' application call to search.
Next level is escaping the tab: "\\t". Now the codes get translated (by the parser) into "\t", which is, ta-da, a tab for the application search string.
So, you have to escape the escaped escape (?), leading to the somewhat bewildering "\\\\t". Double backslashes are translated into single ones ("\\t") which is passed over to the search inside InDesign, which translates it into "\t", which is what you asked.
The "^" is slightly easier, as it (probably!) is not 'pre-parsed' by your script, just by the InDesign Search engine. As in InDesign itself, to search for a single "^", enter two.
By the way ... there is no single search string in which both "\t" and "^p" are translated into a tab and paragraph return. The former is a GREP search expression, the latter a native InDesign Text search one.
Technical Details
Message-ID:
<59b755d2.3@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b755d2.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,5dcc0b892adeb054 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: jongware@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Change text problem CS3 Message-ID: <59b755d2.3@webcrossing.la2eafNXanI> Date: Mon, 22 Dec 2008 12:50:01 -0800 References: <59b755d2.-1@webcrossing.la2eafNXanI> Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit