I'd like to open Chrome with a specific URL from my macOS app.
I'm trying it like this, but unfortunately it doesn't work. Chrome is opened, but not with the given URL String.
let configuration = NSWorkspace.OpenConfiguration()
configuration.arguments = [url.absoluteString]
let appUrl = URL(fileURLWithPath: "/Applications/Google Chrome.app")
NSWorkspace.shared.openApplication(at: appUrl,
configuration: configuration,
completionHandler: nil)
open() does not help me in this case, as I don't want to open the standard browser.
Help is highly appreciated!