So I want to force quit some applications. The method described on this Macscripter thread describes a way which works for most applications.

tell application "SomeApp" to quit saving no

However, when used on Terminal when it is running some process, it, it gives me this pop-up:

image of terminal complaining

I want to get this pop-up when using the terminal manually but not when "force quitting" it. Is there a way around this without disabling the function entirely and without UI Scripting.

  • How about using: do shell script "pkill -9 'Terminal'" Oct 30, 2021 at 20:09
  • @user3439894 The pkill command doesn't provide any output and also doesn't quit the Terminal.
    – gurkensaas
    Oct 30, 2021 at 20:14
  • killall Terminal should do it
    – red_menace
    Oct 30, 2021 at 20:17
  • It does quit Terminal and what output do you want as you didn't ask for any in the question that I saw. Oct 30, 2021 at 20:17
  • @user3439894 I mean output as in error output. And no, I copied your exact command and it didn't quit the Terminal.
    – gurkensaas
    Oct 30, 2021 at 20:19


You must log in to answer this question.

Browse other questions tagged .