[OS X TeX] Damn Applescript!

Herbert Schulz herbs at wideopenwest.com
Wed Sep 28 09:19:30 EDT 2005


On Sep 28, 2005, at 4:36 AM, Stefan Walsen wrote:

>
> Well, yes, but... you don't really want to delete the selection, do  
> you?  you want to delete its *content*. Otherwise, the next time  
> you say
>  'set offset of selection of front document to (firstOccurrence -  
> 1)' (or something similar), AppleScript says 'What selection? You  
> mean the one you just deleted? That's gone.' ;)
>
> You could, of course, also say 'set content of selection of front  
> document to ""', or even 'set selection of front document to ""'.  
> Although I don't know why the last statement works. :)
>
> HTH,
> Stefan

Howdy,

Works wonders! Thank you! I still can't get my head around the syntax  
of Applescript but I'm sure glad there are those around here that can!

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)


------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list