Re: get default browser?
Re: get default browser?
- Subject: Re: get default browser?
- From: Philip Aker <email@hidden>
- Date: Thu, 01 Aug 2002 18:05:41 -0700
You can try the following. It doesn't work on everyone's setup
(I trashed all M$ products that came pre-installed and ditched a
few .plist files) but sure does on mine. I believe you will have
had to set the browser in System Preferences at least once.
try
set res to (do shell script "defaults read
com.apple.LaunchServices 'LSBindingPrefsTypeBindings' | grep
'\"A;????.html\"'")
set xmlname to (last word of res) as string
set _off to (offset of "." in ((reverse of (items of
xmlname)) as text)) - 1
text -_off thru end of xmlname
on error estr
display dialog estr
end try
On Thursday, August 1, 2002, at 11:32 AM, Michael Grant wrote:
b.x we asked File Exchange, show us your unix.
So, neither the System Preferences application nor the Internet
preference
pane itself appears to be scriptable. There's a preference file named
"com.apple.internetconfig.plist" which can be opened with
PropertyListEditor, but a) PLE isn't scriptable either, and 2)
the current
value for Helper:http is "<4f574542 074f6d6e 69576562 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 >", which isn't very
helpful. What is
that, a disk sector address? Anyway, it doesn't look like
editing the plist
file is going to get me very far....
I tried "defaults read com.apple.internetconfig" in the
Terminal, but the
data shows up as gibberish there as well.
At this point I'm out of ideas, either using AS or the shell.
Can anyone
help me move forward?
Thanks,
Michael
--
Death to all fanatics!!
_______________________________________________
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.
mailto:philip@vcn.b
c.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.