2005
06.17
06.17
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?
- Make a backup copy of Radio.root (I didn’t but I should have – oops)
- 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.
- change system.verbs.apps.Safari.openURL so it matches the return in system.verbs.builtins.webBrowser.openUrl for MacOS in the os test.
- In system.verbs.builtins.webBrowser.supportedBrowser I added ‘sfri’ as a supported browser AND changed:
if system.environment.isCarbonTo: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.) - In webBrowser.getDefaultBrowser I changed the default browser to Safari.id and ‘sfri’
(Used to be msExplorer.id and ‘MSIE’ - 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.