Article View: adobe.scripting.indesign
Article #17257Re: AS Different search code
From: Olav Kvern
Date: Fri, 20 Jun 2003 18:05
Date: Fri, 20 Jun 2003 18:05
15 lines
1814 bytes
1814 bytes
Roy-- re: "I just want to know in laymans terms why the difference?" When you tell InDesign to search some object, you are using the Find/Change feature built into InDesign. The strings that you use for the search operation should be the same as the strings you enter in the Find What or Change To fields of the Find/Change dialog box. You cannot enter a carriage return character in either field; instead you enter "^p"; for a tab character, you enter "^t". Most of the InDesign search metacharacters are listed on the pop-up menus associated with the fields. "return" and "tab" by contrast, are AppleScript special characters--*not* InDesign search metacharacters. I'm actually somewhat surprised that this would work at all. Again (since we've been through this before): Use the InDesign search metacharacters, *not* the scripting langauge special characters (this goes for VBCr and VBTab, as well), just as you would if you were entering text in the Find/Change dialog box. Does that make sense? Thanks, Ole
Technical Details
Message-ID:
<1de99def.1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de99def.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,a5c43f8c91b94185 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-06-20 11:07:49 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: AS Different search code Message-ID: <1de99def.1@WebX.la2eafNXanI> Date: Fri, 20 Jun 2003 11:05:39 -0700 References: <1de99def.-1@WebX.la2eafNXanI> Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit