AppleScript app is not recognized as default browser
7
votes
3
answers
343
views
**Target OS:** Macos 10.15.3 Catalina
**Goal:** use apple script bundled to app as a default web browser
To debug I'm using very simple apple script, that just show passed url in dialog
on open location theURL
display dialog "Passed url : " & theURL
end open location
I also added CFBundleURLTypes
to Info.plist to claim binding to http\https url schemas
CFBundleURLTypes
CFBundleURLName
My test app url
CFBundleURLSchemes
http
https
**The problem:** is that app is not showing up in 'Default web browser' combobox in System Preferences -> General
I've tried to dump Launch Service database
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -dump
And my app is present there.
Also tried force register
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -v -f ./MyTestApp.app
Also tried to sign my app by self issued signature.
Nothing helped.
**What could I miss?** Is there any additional configurations that should be done to let macos recognize my apple scrip app as possible default browser?
Asked by Andrej Soroj
(296 rep)
Apr 6, 2020, 08:18 PM
Last activity: Jul 1, 2025, 04:11 PM
Last activity: Jul 1, 2025, 04:11 PM