<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">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.<div class=""><br class=""></div><div class="">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.<br class=""><div class=""><br class=""></div><div class="">Claus<br class=""><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;" class="">--AppleScript direct</div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;" class="">-- Apply only to an already saved file</div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;" class="">-- Claus Gerhardt, September 2006</div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;" class="">--set insertText to "pdflatex"</div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;" class="">--%&pdflatex %&pdflatex set pasteText to "%&" & insertText & " "</div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;" class="">tell application "TeXShop"</div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>activate</div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>tell application "System Events"</div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>--tell process "TeXShop"</div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>keystroke "%&"</div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;" class="">keystroke "pdflatex "</div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>--end tell</div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>end tell</div><p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span><br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;" class="">end tell</div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div></div></div></div></body></html>