[OS X TeX] Mojave and Applescript

Claus Gerhardt claus.gerhardt at uni-heidelberg.de
Thu Oct 11 20:41:18 CEST 2018

As Dick recently mentioned Mojave places some restrictions on the actions ASs are allowed to perform. Today I found out that normal applications aren't allowed to send keystroke via AS, only System Events is allowed to do this. Below is an example.

By the way, I had to replace the graphics card of my old Mac Pro 5.1 by a Sapphire Pulse RX 580 in order to install Mojave. This has the additional benefit that I can then also use the 5K display by LG the 3WK95U which has a Thunderbolt as well as a DP1.4 port. The Sapphire card also has a DP1.4 port which offers the necessary band width.


--AppleScript direct
-- Apply only to an already saved file
-- Claus Gerhardt, September 2006

--set insertText to "pdflatex"

--%&pdflatex %&pdflatex set pasteText to "%&" & insertText & " "

tell application "TeXShop"
	tell application "System Events"
		--tell process "TeXShop"
			keystroke "%&"
keystroke "pdflatex "
		--end tell
	end tell
end tell

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/macostex-archives/attachments/20181011/85deada6/attachment.html>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

More information about the macostex-archives mailing list