Re: Script to get default browser?
Re: Script to get default browser?
- Subject: Re: Script to get default browser?
- From: Philip Aker <email@hidden>
- Date: Fri, 10 Jan 2003 00:34:40 -0800
On Thursday, January 9, 2003, at 04:01 PM, Mr Tea wrote:
Can I use AppleScript to find out what the current default browser is?
Ok, second try. I've just installed 10.2.3 and Safari. This is working
but untested for other browsers or OS versions:
set lsbundle to (do shell script "defaults read
com.apple.LaunchServices | grep -C2 E:html | grep -w
LSBundleIdentifier")
set blist to (words 3 thru -1 of lsbundle)
set res to ""
repeat with i from 1 to count of blist
set res to res & item i of blist & "."
end repeat
(text items 1 thru -2 of res) as string
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.