Re: Programatically determining default browser?
Re: Programatically determining default browser?
- Subject: Re: Programatically determining default browser?
- From: Paul Skinner <email@hidden>
- Date: Wed, 18 Jun 2003 09:46:01 -0400
On Tuesday, June 17, 2003, at 11:33 PM, Roger Howard wrote:
Does anyone have a quick way of programatically determining the
default browser on OSX?
best,
Roger
GetDefaultBrowser()
-->alias "titan:Applications:Safari.app:"
on GetDefaultBrowser()
set creatorType to word -1 of (do shell script "defaults read
com.apple.LaunchServices |grep -C5 E:html | grep -w LSBundleSignature
")
set {text:creatorType} to (text of creatorType) as text
tell application "Finder"
(application file id creatorType) as alias
end tell
end GetDefaultBrowser
_______________________________________________
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.