Can't find what I'm looking for through searching.. so I am going to post up here.
I am trying to get the defaultbrowser program working, and it is but I get that silly prompt each time asking me if I want to keep Firefox or use Chrome. I made an Applescript that presses the "Use Chrome" button in the dialog box but then Accessibility shows up when I run it the first time and I have to confirm it in System Prefs. Is there any way around this? Currently I am running the Applescript as a LaunchAgent.