I want to open an application like TextEdit or Firefox in Mac OS using Python and wait till the applications exits. I can\'t figure out exact command to open an app and wait.
You can close any app on osx (like Chrome or Safari) with this in python:
import os os.system("pkill Chrome")