• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Script to get default browser? > Philip
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Script to get default browser? > Philip
      • From: Philip Aker <email@hidden>
References: 
 >Re: Script to get default browser? > Philip (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: Null
  • Next by Date: Re: Scripts won't launch
  • Previous by thread: Re: Script to get default browser? > Philip
  • Next by thread: Re: Script to get default browser? > Philip
  • Index(es):
    • Date
    • Thread