[OS X TeX] 1) Search source file when preview is active (`front'). 2) Incremental search

Michael Sharpe msharpe at ucsd.edu
Sat May 24 02:20:52 CEST 2014

On May 23, 2014, at 4:25 PM, Nicolae Garleanu <garleanu at haas.berkeley.edu> wrote:

> Thanks, Herb, I didn¹t know about Cmd-1, which is an improvement over my
> circling through TexShop windows using the HyperSwitch shortcut. Very nice.
> I would still quite like to know, though, how to assign a shortcut to a
> series of simple TexShop commands (e.g., Cmd-1 Cmd-F, easy though it is to
> type it directly).

The following applescript shows how:

tell application "TeXShop"
	tell application "System Events"
		keystroke "1" using command down
		keystroke "f" using command down --important to use lowercase
	end tell
end tell

This can be entered as a new macro in the Macro Editor (Macros Menu) and given a trigger of your choice.


More information about the macostex-archives mailing list