This is a quick hack to test whether a Python script can manage suspending and resuming other applications on MacOS. This version is a draft and has been tested for a few hours on MacOS El Capitan, your mileage may vary.
The script should be run with system python,
if you have installed another copy with brew or another manager,
use /usr/bin/python
instead of python
in the following:
Download the autosuspend.py
file, and run it with:
$ python autosuspend.py
Edit the file (configuration is near the bottom) to your preferences.
You can hit ctrl+c to quit the script and stop suspending apps.