Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 1 down vote accepted

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" 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

share|improve this answer
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
Oh, duh. Thanks. – Dogweather Jan 24 '12 at 13:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.