I want to open an application in Swift and wait for the application window to open before continuing.
I\'m opening the application using:
func openApp(