Re: How to identify the default browser?
Re: How to identify the default browser?
- Subject: Re: How to identify the default browser?
- From: Philip Aker <email@hidden>
- Date: Sat, 01 Jun 2002 16:34:32 -0700
Rob Morton:
set res to (do shell script "defaults read
com.apple.LaunchServices 'LSBindingPrefsTypeBindings' | grep
'\"A;????.html\"'")
set xmlname to last word of res
-->"com.omnigroup.OmniWeb"
Can anyone verify?
Clever idea, but unfortunately, mine has no information for
html. Kind of rules that method out.
I would guess that's because you have never changed from the
initial browser choice. Just a guess mind you because I could
see that if one had changed their browser but never actually
done a "Show Info" from the Finder to change all ".html" files
to be opened by OmniWeb then there still might not be an entry
for "A;????.html".
Alex Robinson:
Well, that's the app that will open .html files. In my case as
I edit html files a lot, I get "com.barebones.bbedit". Yet
InternetExplorer still acts as the default browser
I see.
I think what you're actually after is the nested key
"helper:http" in com.apple.internetconfig. How you get it and
use it I haven't the faintest...
later:
Whoops. I meant...
<key>HelperList:http</key>
Nope. I got MacOS X on March 24, 2001. By March 25 I had the
scalpel out and was dutifully eradicating every trace of M$
products from my disk. At first I tried to eliminate the default
choice in SystemPreferences->Internet->Web Panel by trashing
com.apple.internetconfig.plist. Now I have no such
"<key>HelperList:http</key>" in the listing. I don't know what
would be in the listings if you temporarily moved that file to
another location and then examined the file after a restart
(still keeping IE as your browser).
It wouldn't be a problem to grap that particular key though
because 'grep' seems to work by the line.
===
So know I'll have to guess that the default browser is stored in
"LSApplications" which appears to be a binary file. There must
be a Cocoa NSDefaultBrowser or some such key to reference this
thing but I don't know what it is at the moment.
Thanks for the replies,
Philip Aker
http://www.aker.ca
'
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.