How to close windows on mac

By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service.

I'm looking for a keyboard shortcut to close a window of an app, skipping the "Would you like to save" pester dialog, while leaving the app, itself, and other windows, still open. To press a button in a dialog using a keyboard shortcut, press Command , followed by the first letter of the action you wish to trigger.

How to close all Finder windows at once

The exception to this rule is if the action you wish to activate will delete a file or changes thereto, in which case the shortcut is Command - delete. To force-close a window, you'd need to automate the correct series of key presses using AppleScript or something similar.

Related articles:

The first key combination would likely be Command - W though not even this is entirely universal. However, the dialog shortcuts vary by application—older versions of Microsoft Word don't comply with the Command - delete behavior they use Command - D , while Automator's save sheets can often only be closed through mouse input. You would have to tailor this behavior to the specific applications in which you're interested.

Such an AppleScript might look something like this though be warned, triggering Command - delete without knowing the context is an easy way to accidentally delete files and large swathes of text :. You could create multiple services, each one with the same keyboard shortcut but in different applications, corresponding to the unique behavior of each.

keyboard - On a mac, how can I force-close a window of an app (NOT the app itself)? - Ask Different

Home Questions Tags Users Unanswered. On a mac, how can I force-close a window of an app NOT the app itself?

How to Get macOS Mojave Features on Windows 10

Ask Question. Press and hold "Command-Option" and then press the "W" key to close all the windows on your Mac's screen.

Subscribe to RSS

Press and hold "Command-M" to minimize the window that is active on your Mac's screen, if you don't want to close the window completely. Press and hold "Command-Option" and then press the "M" key to minimize all windows on your Mac's screen. Nick Davis is a freelance writer specializing in technical, travel and entertainment articles. He holds a bachelor's degree in journalism from the University of Memphis and an associate degree in computer information systems from the State Technical Institute at Memphis.

How to Close Windows on a Mac Using the Keyboard

He is currently living in Albuquerque, N. Skip to main content. About the Author Nick Davis is a freelance writer specializing in technical, travel and entertainment articles. Accessed 11 July