I'm working on an Apple Script that handles URLs. There's a command one can give which re-creates the list that Safari shows to change the default web browser.

Anyone know what this is?


If you saved your AppleScript as application and declared that it can handle the http and https URL scheme in its Info.plist file, you simply need to update its modification date e.g. by running touch "My Program.app" in Terminal, or moving it to a different folder and back again in Finder.

Launch Services will then pick up the change automatically. You will need to restart Safari to update the browser list.

enter image description here

  • Ah hah, interesting! Yes, the system does pick up these changes. There is definitely some under-the-covers magic going on: I couldn't do a cp -pR at the command line, but DnD in Finder was fine for deploying the app. – Dogweather Jan 24 '12 at 9:20
  • @Dogweather Yeah, preserving modification time looks like a good reason for Launch Services to not check the bundle again. – Daniel Beck Jan 24 '12 at 9:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .