[OS X TeX] Multiple Search/Replace in one script?
William Adams
will.adams at frycomm.com
Tue May 29 09:42:21 EDT 2007
On May 26, 2007, at 8:53 AM, Steffen Wolfrum wrote:
> I am looking for a way to automate (and also archive) my most
> common ten or twenty search/replace runs.
>
> 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?
Not really. I broke down and just wrote an AppleScript which drives
TextEdit.app using GUI-scripting. Ugly.
For my part, I'd like to see a special-purpose tool for this in Mac
OS X --- something coded up as a Service would be ideal. Even better
would be if it had a front-end along the lines of ``ReplaceEm'' (a
Windows app available at http://www.orbit.org/replace/) for creating
the search-replaces.
William
--
William Adams
senior graphic designer
Fry Communications
------------------------- 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