I try started with the basics. Their was nothing to be save in the program just exit.<br><br>
tell application "OpenLP"<br>quit<br>end tell
<br>
then <br><br>
activate application "OpenLP"<br>tell application "OpenLP"<br>quit<br>tell application "System Events" to keystroke return<br>end tell<br>end
<p>and then replace keystroke with key code 36 command down also tried # 76. Use some frontmost statements to bring window to top. I will be the first one to admit I do a lot of trial and error but always trying to learn as I go. So after a long period of time I decided to try Automator pretty straight forward, select Quit Application/ OpenLP from the drop down box/ uncheck to save changes and click on run to test program. Tested it with other open programs and had positive result.<br></p><p><br></p><p><img src="https://forums.openlp.org/uploads/editor/rn/ot3b3mpbmbr5.png" alt="" title="Image: https://forums.openlp.org/uploads/editor/rn/ot3b3mpbmbr5.png"><br></p><p><br></p><p>Applescript time out and Automator couldn't be completed.</p><p><br></p>
<p>
</p>