2005
06.17

Finally…

figured out how to modify Radio.root so Safari (in Mac OS X 10.3.9) is the default web browser.It even opens up safari if it isn’t running already. (Too bad it doesn’t do WYSIWYG editing.

What did I do?

  1. Make a backup copy of Radio.root (I didn’t but I should have – oops)
  2. Added a system.verbs.apps.Safari to Radio.root (Basically a subset/copy of the msExplorer one with all MSIE and msExplorer.id references changed to Safari.id or ‘sfri’ – All I have is appInfo, id, bringToFront, openUrl, openDocument, and quit.
  3. change system.verbs.apps.Safari.openURL so it matches the return in system.verbs.builtins.webBrowser.openUrl for MacOS in the os test.
  4. In system.verbs.builtins.webBrowser.supportedBrowser I added ‘sfri’ as a supported browser AND changed:

    if system.environment.isCarbon

    To:

    if defined (system.environment.isCarbon) and system.environment.isCarbon

    (This is a copy of a change made by Userland in webBrowser.getDefaultBrowser to support Mozilla/Firefox.)

  5. In webBrowser.getDefaultBrowser I changed the default browser to Safari.id and ‘sfri’
    (Used to be msExplorer.id and ‘MSIE’

  6. I added an ‘sfri’ and Safari to system.verbs.builtins.webBrowser.launch under the case sys.os – MacOS – just copies of the IE ones -renamed.

I think that’s it… not sure it’s enough info for anyone to do it…

Comments are closed.