How to force a Mac application to quit

Posted:
in General Discussion edited October 2020
From just using Command-Q to entering Terminal commands, there are a surprising number of ways to quit an app -- and, at times, we need them all. Here's how to get rid of an app that just won't quit.

The App Store icon next to a US Stop road sign
The App Store icon next to a US Stop road sign


In theory, every Mac app has a File menu and they all have Quit as the last option in the list. In practice, you've occasionally come across ones that have been poorly ported from Windows and lack this basic feature. However, you've also far more often had an app simply refuses to quit.

Whatever's going on that means it grays-out the File/Quit option and won't look for your Command-Q keyboard, there is one thing certain. This app ain't coming back. Something has gone wrong and the only way to fix it is to force the app to stop.

Here are the many ways to do that -- arranged in the order you should try them.

The safest route

Try Command-Q keystroke, even if it doesn't appear to do anything. It's possible that the app will react to it eventually, and if it does, this is the only chance that you have to not lose work.

It's worth a shot. Even if the Quit menu is grayed out, try the Command-Q keystroke and wait.
It's worth a shot. Even if the Quit menu is grayed out, try the Command-Q keystroke and wait.


The reason is that whatever has gone wrong with the app, it may still be trying to save your document. With any other method you can use, you are killing the app immediately and whatever slight possibility that it was saving at the time is gone.

Force Quit

If the app doesn't respond after a couple of minutes, use macOS's Force Quit.

We're not saying Apple knows this happens a lot, but it does give us a lot of ways to force quit an app.

You'll find the first two under the Apple menu in the app. There's a menu option called Force Quit... and it's got a keyboard shortcut, Command-Option-Escape.

That shortcut may be familiar to you if you've been using Macs for a long time. Both it and the menu option launch the Force Quit Applications dialog which lists all of your currently-running apps.

Under the Apple menu there's Force Quit... which opens a dialog and highlights whichever app you were in.
Under the Apple menu there's Force Quit... which opens a dialog and highlights whichever app you were in.


If you do Command-Option-Escape anywhere on your Mac, you get this dialog and you can scroll to the problematic app. Usually it will have the words "not responding" next to it. If it hasn't got that, consider leaving it a little while longer, as it still might be working.

All that choosing the Force Quit menu from within an app does is launch this dialog and put your cursor on the entry for that app.

When you've got the cursor on the app name you want, click Force Quit. And as soon as you can afterwards, click the red close button or type Command-W to get rid of the Force Quit dialog before you accidentally kill another app.

There is absolutely no reason why we have chosen to use Word as our example of apps that need force quitting
There is absolutely no reason why we have chosen to use Word as our example of apps that need force quitting, oh no.


What may be less familiar than all this, is the subtly different keystroke, Shift-Command-Option-Escape. If you instead press that, you don't call up this dialog box, you just force quit whatever application is in the foreground at the time. That is, it kills the app whose name is up next to the Apple menu in the menubar, and it does so right away.

There's yet another way to Force Quit an app, and that's from your Dock.

Right click on the Dock icon and then with the menu option, tap the Option key to get Force Quit
Right click on the Dock icon and then with the menu option, tap the Option key to get Force Quit


If you right-click on a running application in your Dock, you will get a menu that includes Quit. With that menu on screen, press and hold the Option key on your keyboard. Quit will turn to Force Quit.

When all else fails

Sometimes, though, none of this is enough. In which case, there are two further things you can do. They're both like using a blunt instrument and they can both cause other problems if you're not careful, but they will definitely do the job.

The better of the two remaining weapons is the Terminal app that comes with your Mac.

Launch Terminal from your Applications/Utilities folder, and at the command line prompt, type the word killall followed by the name of your app.

Often, that's all you need to do. Terminal will just quit that app for you.

However, there are many cases where Terminal will just give you an error message such as "no matching processes were found."

Typically there are three reasons for this. A simple one is that you mistyped the name of the application -- as well as typing it correctly, you have to get the case right. Typing killall photos will not quit Apple's Photos app, for instance, whereas killall Photos should.

If the app's name is two or more words, then you have to enclose that name in speech marks. So it's killall "Pixelmator Pro" and killall "Final Cut Pro".

Just to show we're not picking on Microsoft Word, here's how to use Terminal to force quit Apple's Final Cut Pro X.
Just to show we're not picking on Microsoft Word, here's how to use Terminal to force quit Apple's Final Cut Pro X.


Notice that it's not "killall Final Cut Pro X", even though that is the proper name of the video editing app. It has to be the same name that you see in the Dock or in your Applications folder.

Even when you get all of this right, however, it may still not work because your Mac doesn't believe you've got the permission to quit these apps.

In that case, the error you'll get is "no matching processes belonging to you were found." Assuming that you are the admin user of your own Mac, you just need to prefix the killall command with sudo.

So it becomes sudo killall Photos. You may be prompted for your password, but it's just the same password you use to sign in to your Mac.

One last thing

The reason that this particular blunt instrument is dangerous is because you shouldn't mess around in Terminal unless you know what you're doing. But the reason it's better than the final option, is that it's the last method to treat an application as a single entity.

In reality, an app might be several software processes and it's possible to force quit just one of them. That won't magically make the rest of the app work, and what's more, you may not recognize a process enough to be sure which app it's from.

Good luck identifying everything in this Activity Monitor list. But if something is taking up all your CPU time, you'll see it here.
Good luck identifying everything in this Activity Monitor list. But if something is taking up all your CPU time, you'll see it here.


However, this approach might help you identify what's going on. Launch Activity Monitor from your Applications/Utilities folder and in a moment you'll see a list of absolutely everything running on your Mac.

Not only won't you recognize all the names on the list, that very list will keep changing right in front of you. That's because it's always sorted by some constantly changing criteria such as what percentage of CPU activity the app is currently taking up.

That's the kind of information that might be helpful. If you can see that a process is taking up a huge amount of CPU activity, or memory and so on, you may be able to recognize what it is. If you're sure you know which process you want to quit, click to select it -- and double check that you got the right one, that the list didn't change right under your mouse click.

Then click on the X icon just under Activity Monitor's red close button. You'll be asked if you're sure, and if you are, the process will be force quit for you.

It's not quite over

Most of the time, whatever has gone wrong is a fluke and the next time you run the app, it'll be fine. If it happens more often, you need to talk to the developer.

However, force quitting is not as neat and tidy as regular quitting is. Files may not be closed properly or the app may remain in memory, for instance.

The best thing you can do after force quitting an app is to restart your Mac.



Keep up with AppleInsider by downloading the AppleInsider app for iOS, and follow us on YouTube, Twitter @appleinsider and Facebook for live, late-breaking coverage. You can also check out our official Instagram account for exclusive photos.

Comments

  • Reply 1 of 13
    knowitallknowitall Posts: 1,648member
    One easy way is to log out and in (this kills all apps running in your session and restarts the apps after login).
    Reboot if all else fails (reasonably fast if running from a ssd).
    watto_cobra
  • Reply 2 of 13
    sflocalsflocal Posts: 6,092member
    Interesting.  I've never had to go further than Force-Quit.  If I have applications that behave more severely than that, it would not have a place on Mac for any decent time.
    watto_cobra
  • Reply 3 of 13
    1st1st Posts: 443member
    have to use force quit few times.  what really a killer is the mouse (one button) got stuck on or slow response... (LED flash slowly or stuck on).  one time, have to shut down (hard power off).  
  • Reply 4 of 13
    Mike WuertheleMike Wuerthele Posts: 6,858administrator
    knowitall said:
    One easy way is to log out and in (this kills all apps running in your session and restarts the apps after login).
    Reboot if all else fails (reasonably fast if running from a ssd).
    A software reboot doesn't always force-quit applications, especially if you've been running a long time. And, when it doesn't, you can always use one of these techniques to do so!
  • Reply 5 of 13
    knowitallknowitall Posts: 1,648member
    knowitall said:
    One easy way is to log out and in (this kills all apps running in your session and restarts the apps after login).
    Reboot if all else fails (reasonably fast if running from a ssd).
    A software reboot doesn't always force-quit applications, especially if you've been running a long time. And, when it doesn't, you can always use one of these techniques to do so!
    Terminal commands (sudo) "reboot" and "shutdown" (sends a SIGKILL if need be) can be used in that case.
    Also, I meant Apple menu option "Restart ..." with 'Reboot' in my last comment. Restart sometimes isn't able to kill apps for various reasons, but mentions this and indicates the application canceling it.
  • Reply 6 of 13
    dysamoriadysamoria Posts: 3,430member
    I’ve had to force quit applications plenty. I didn’t notice this article making the point about the Esc key being missing on all new MacBooks ...
  • Reply 7 of 13
    Mike WuertheleMike Wuerthele Posts: 6,858administrator
    dysamoria said:
    I’ve had to force quit applications plenty. I didn’t notice this article making the point about the Esc key being missing on all new MacBooks ...
    Why would it need to? The method still works with the Escape key on the Touch Bar.
    fastasleep
  • Reply 8 of 13
    dysamoria said:
    I’ve had to force quit applications plenty. I didn’t notice this article making the point about the Esc key being missing on all new MacBooks ...
    Why would it need to? The method still works with the Escape key on the Touch Bar.
    I can envision a scenario where the software problem is preventing input from the Touch Bar yet still accepting keyboard and/or mouse input. Probably rare, but I think it's a fair point.
    dysamoria
  • Reply 9 of 13
    Mike WuertheleMike Wuerthele Posts: 6,858administrator
    dysamoria said:
    I’ve had to force quit applications plenty. I didn’t notice this article making the point about the Esc key being missing on all new MacBooks ...
    Why would it need to? The method still works with the Escape key on the Touch Bar.
    I can envision a scenario where the software problem is preventing input from the Touch Bar yet still accepting keyboard and/or mouse input. Probably rare, but I think it's a fair point.
    The Touch Bar is driven by the T2 on the MBP., so you don't have to deal with runaway processes on the Intel side of the house. I guess it's possible, but doesn't seem likely.
    edited July 2019
  • Reply 10 of 13
    EsquireCatsEsquireCats Posts: 1,268member
    dysamoria said:
    I’ve had to force quit applications plenty. I didn’t notice this article making the point about the Esc key being missing on all new MacBooks ...
    Why would it need to? The method still works with the Escape key on the Touch Bar.
    I can envision a scenario where the software problem is preventing input from the Touch Bar yet still accepting keyboard and/or mouse input. Probably rare, but I think it's a fair point.
    If you're worried about this: you can reassign the ESC key to one of your physical keys. Some people assign it to the Caps lock key due to its infrequency of use.
    However this is really for those that wish to maintain the tactile feel of an esc key, which many rely on so they can tap it blindly when using apps such as safari or various coding tools.

    There is little reason to do this for fear of the touch strip becoming inactive. It is not only a different subsystem, but even a different architecture from the intel based macs. In the unlikely scenario of the touch bar becoming unresponsive, your mac software will likely still be running along fine. (I.e. triggering an undiscovered bug rather than dually hung processes.) The hardware isolation seems like a deliberate design choice from Apple to keep the touchbar unaffected by the performance of the host Mac and certain security reasons which the macros enable.



  • Reply 11 of 13
    dysamoriadysamoria Posts: 3,430member
    Uh, haven’t we already seen crashes in the Touch Bar’s embedded OS?
  • Reply 12 of 13
    Mike WuertheleMike Wuerthele Posts: 6,858administrator
    dysamoria said:
    Uh, haven’t we already seen crashes in the Touch Bar’s embedded OS?
    Sure, but they aren't driven by the Intel side of the house crashing.
  • Reply 13 of 13
    I mostly encounter instances when the entire OS grinds down to where little or no visual aids are available to the user. In those cases none of the Force Quit or Terminal options will work as it is impossible to open any additional App. Sometimes one still has control of a touchpad/mouse cursor which can be moved about without bringing any App to the foreground or activating menus or Dock items. OSX was intended to allow Mac users an OS which is truly and fully threaded and multitasking. A promise that would have meant most of the procedures in the article above would have been rendered obsolete. Sometimes one feels that nothing has changed since PPC OS9 days.
Sign In or Register to comment.