Open a URL
hs_open_urlOpens a URL in its default handler, or routes it to a specific application by bundle ID. Returns the app that received the URL and reports clear errors when no handler is available.
Instructions
Open a URL in the default handler for its scheme, or in a specific application by bundle id (for example com.google.Chrome or com.apple.Safari). The result names the application that actually received the URL. Errors when nothing handles the scheme or macOS refuses. Use hs_list_apps to find bundle ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to open. Include the scheme, for example https://. | |
| bundleId | No | Bundle id of the app to open it with. Omit to use the default handler. |