Re: Script to get default browser? > Philip
Re: Script to get default browser? > Philip
- Subject: Re: Script to get default browser? > Philip
- From: Paul Skinner <email@hidden>
- Date: Fri, 10 Jan 2003 10:21:41 -0500
On Friday, January 10, 2003, at 06:19 AM, Mr Tea wrote:
This from Philip Aker - dated 10-01-03 08.34 am:
Ok, second try.
Hi, Philip
Thanks for the info.
As posted, your script generated an error OMM (can't get text items 1
thru
-2 of com.microsoft.explorer), so I made a slight adjustment:
snip!
I switched the default back to MSIE, then reverted to Safari (in system
prefs), and got this result:
--> "microsoft explorer LSBundleIdentifier = com apple safari"
What's that about? Not that it matters. The info I want is in there,
and
your method is roughly a million times faster than the solution posted
by
Paul Skinner in this thread. :-)
Oh yeah? Well then! cool.
set currentState to (do shell script "defaults read
com.apple.LaunchServices |grep -C2 E:html | grep -w LSBundleIdentifier
")
set AppleScript's text item delimiters to "\""
set currentState to text item 2 of currentState
-->"com.apple.safari"
must learn grep... must learn regex... must learn awk... must learn
cocoa...
--
Paul Skinner
Oh, and that scripting addition... Yes please.
Thanks again,
Mr Tea
_______________________________________________
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.