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.
AppleScript:
tell app "Whatever you want" to open
Call from Python
import os os.system("""osascript -e 'tell app "Safari" to open'""")