[OS X TeX] Can someone conform this TeXShop applescript behavior?

Herbert Schulz herbs at wideopenwest.com
Sun Jun 6 00:33:16 EDT 2010


On Jun 5, 2010, at 9:29 PM, Ramón Figueroa-Centeno wrote:

> 
> Aloha,
> 
> When entering the following I always get the cursor at the end of the file. 
> 
> tell application "TeXShop"
> 	set doc_name to the name of the front document
> 	set the the offset of the selection of document doc_name to -1
> end tell
> 
> Is this the way it is supposed to be, a negative offset points to the end of
> the file? If so I could find it useful!
> 
> Thanks,
> 
> Ramón

Howdy,

Haven't tested it but is and offset of -2 one character before the end of the file?

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the MacOSX-TeX mailing list