Launch Safari and Wait Until it is Closed [duplicate]
问题 This question already has an answer here: Launch Firefox and Wait until it is Closed 1 answer Question I want to start the Safari web browser as the process to visit a specific website, then wait until it is closed. A special situation is that the browser may already be open and running, as the user may have visited some website already. In that case, the browser would probably open a new tab in an existing window and the newly launched process will be terminated immediately. This should not