Article View: adobe.scripting.indesign
Article #16029search with wildcards not working properly in AppleScript
From: Ton_Kuypers
Date: Wed, 22 Oct 2003 08:54
Date: Wed, 22 Oct 2003 08:54
22 lines
1417 bytes
1417 bytes
I have got a textfile containing various bullets and/or numberings. I don't know what options are used, but I need to format these lists with indents.
So i use the following script:
tell application "InDesign 2.0.2"
set find preferences to nothing
set change preferences to nothing
tell active document
set myFoundItems to search with find attributes {find text:"^p^?^t"}
end tell
end tell
In the list of 14 paragraphs, all starting with a bullet (�) and a tab I get the result of 7 items. The first one is found, the third one, the fifth one, etc.
When replacing the "^?" with "�" I do get 14 items found...
What am I doing wrong????
Any help is welcome... MORE then welcome...
Warm regards,
Ton Kuypers
Technical Details
Message-ID:
<2ccdefcd.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,31b95e11472f0fd8,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-10-22 02:08:08 PST From: Ton_Kuypers@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: search with wildcards not working properly in AppleScript Message-ID: <2ccdefcd.-1@webx.la2eafNXanI> Date: Wed, 22 Oct 2003 01:54:44 -0700 Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit