Detect Default Browser in OSX

Sarah Reichelt sarahr at genesearch.com.au
Mon Jan 26 22:37:51 EST 2004


OS X 10.3.2, I get this:
         "U:http" =
             {
                 LSBundleIdentifier = "com.apple.safari";

Cheers,
Sarah

On 25 Jan 2004, at 4:03 pm, rgould8 at aol.com wrote:

> A few days ago on this listserve, someone posted this solution to 
> determining the user's default web-browser setting in Mac OS X.  Just 
> curious - - - can anyone who's running Panther tell me if this works 
> for them?  It appears that my com.apple.LaunchServices data doesn't 
> return anything with "U:http".  Lot's of settings for RealNetworks and 
> Quicktime, but I'm not pulling in anything for a Default browser.  
> (Either IE or Safari).
>
>
>
> the command replaceText(shell("defaults read
> com.apple.LaunchServices"),"(\(|\))","") lists all defaults app in OS X
> the block of lines starting with "U:http" gives the default browser.
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>



More information about the use-livecode mailing list