반응형
👓 001. launchApplication
// MARK: - Launches the specified app.
func launchApplication(_ appName: String) -> Bool
📔 Launching apps programmatically Source Code by Swift
NSWorkspace.shared.launchApplication('APP NAME')
// EXAMPLE
NSWorkspace.shared.launchApplication("Safari")
🚀 REFERENCE
반응형
댓글