Re: iTunes AppleScript won't use default browser
Re: iTunes AppleScript won't use default browser
- Subject: Re: iTunes AppleScript won't use default browser
- From: Gnarlodious <email@hidden>
- Date: Mon, 01 Dec 2003 11:22:10 -0700
Entity Bob Swerdlow spoke thus:
>
So, is there a way to get the name of the default browser in AppleScript?
try
set defaultBrowser to word -1 of ,
(do shell script "defaults read com.apple.LaunchServices | grep -C5
E:html | grep -w LSBundleSignature")
set {text:defaultBrowser} to (text of defaultBrowser) as text
tell application "Finder" to set the defaultBrowser to the name of
application file id defaultBrowser as text
end try
--
There are two kinds of people in the world, those who think the world is a
dichotomy, and those who don't - - - Gnarlodious
_______________________________________________
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.