[OS X TeX] Multiple Search/Replace in one script?
Steffen Wolfrum
mactex_aa at st.estfiles.de
Wed May 30 06:50:45 EDT 2007
Hi Maarten,
thank you for your feedback!
TextWrangler would be a nice start.
Could you give me an example how to write a file containing different search/replace runs like ...
search "1. Dezember" - replace with "1.\,Dezember" - normal
search "daß" - replace with "dass" - case insensitive
search "(\.) ([Dezember|Oktober]) - replace with "\1\\,\2" - with regular expression
... so that all these will can performed on a file/folder with one call?
Steffen
On Sat, 26 May 2007 16:39:59 +0200, Maarten Sneep wrote:
> On May 26, 2007, at 14:53, Steffen Wolfrum wrote:
>
>> I am looking for a way to automate (and also archive) my most common
>> ten or twenty search/replace runs.
>
> Which application. BBEdit/TextWrangler allow you to save
> search/replace combinations under a descriptive name (needed for most
> grep searches). The search & replace functionality is fully
> scriptable through AppleScript, even recordable to get you started.
>
>> I have to admit, I have no idea about scripting. But I guess there
>> should be a way in Applecript/Perl/Rupy/Whatever to write down
>> several entries with...
>>
>> ... what should be the search string
>> ... what should be the replace string
>> ... what kind of search should be opeated (regulr expression, case
>> sensitive, etc.)
>>
>> Any recommendations?
>
> To start with: which application? For scripting my experiences with
> BBEdit (TextWrangler) are good.
>
> Maarten
>
> ------------------------- Helpful Info -------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
> List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
>
>
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the MacOSX-TeX
mailing list