[OS X TeX] Multiple Search/Replace in one script?

Tobias Sebastian Kuhn tosebk at gmail.com
Sun Jun 3 17:53:50 CEST 2007


Am 03.06.2007 um 15:18 schrieb Steffen Wolfrum:

>
> Two more question, please:
> Did you miss an opening bracket somewhere in the line "set  
> searchoptions to ...}"?
> Is it also possible to write an alternative set of options, like  
> "set alternative_searchoptions" below?
>

Both answers are yes!

The construct
set xyz to ""
creates an empty (string) variable usable (nearly) throughout your  
whole Applescript.
You can have as many variables in there as you like!
{} normally are for lists or data sets (like in this case).

But you obviously didn't tried to record a search and replace.  
TextWrangler is one of the few fully recordable Programs (even  
TextEdit is not recordable...). Then you would have seen where the  
opening bracket belongs:
set nichtschnurzegal to {case sensitive:true}

Open TextWrangler with Skripteditor to see "BBedit Suite" with all  
settings (there are default settings for search options).

Happy Skripting!

T.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Faulheit ist, mit dem Cocktailshaker in der
Hand auf das nächste Erdbeben zu warten.



------------------------- 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 macostex-archives mailing list