How to quit all applications except specific ones?

How to quit all applications except specific ones? I know about exclusions but I don't know how to access the exclusion list?

KM's exclusion list can be accessed from the KM Preferences pane:


But app quitting exclusions only apply to KM's app switcher, and aren't affected by macro actions. In the meantime, you can do something like this with a bit of regex and AppleScript to quit every app except for the ones specified in the LocalExclusions variable:

Quit All Apps Minus Exclusions.kmmacros (3.6 KB)

I found a much more elegant way using Applescript. I also am using a Applescript to change the background for screen casting.

@bocciaman, that's great! Could you please share (upload) your solution so that others my benefit?

Will do. I just haven't finished the Macro yet because Bartender isn't working like I think it should. But I'll post it tonight when I get home from work.

Here you go: Screencast Recording Setup Macro. Let me know what you think. I also still need to create a Macro to turn it off (i.e. revert back to my default setup).