• 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: Get default Browser and Mail Client
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get default Browser and Mail Client


  • Subject: Re: Get default Browser and Mail Client
  • From: Diggory Laycock <email@hidden>
  • Date: Mon, 16 Sep 2002 12:42:01 +0100

Actually - on second thoughts - if you just want the browser or mail
then Nathan's solution looks neater.
; )

On Monday, September 16, 2002, at 09:39 am, Nathan Day wrote:

> Look at Launch Services, specifically LSGetApplicationForInfo( ). This
> is used to find out which app will open a file of a specific type,
> extension etc. But you could give it the extension of 'mailloc' for a
> Mail Internet Location and 'webloc' for a Web Internet Location. If
> you have an aversion to carbon I have a wrapper class for Launch
> Service on my web site, (see below) though using launch services is
> pretty straight forward it uses NSURLRef which can be cast straight to
> NSURL *.
>
> On Monday, September 16, 2002, at 03:45 PM, Stephane ODUL wrote:
>
>> Hi,
>>
>> I'm writing a driver for a multimedia keyboard and I'm trying to
>> figure out what is the default web browser.
>>
>> The openURL solution do not work for me as it open a new window (even
>> worse with mail as it creates a new mail). I need to know what is the
>> current default browser so I can send it the appropriate AppleScript
>> (for reload, back, forward ...) and switch to the good application.
>>
>> So my question is very simple: how do I get the name of the default
>> web browser (and mail client).
>>
>> Thank you.
>>
>> Stephane ODUL
>> _______________________________________________
>> cocoa-dev mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>> Do not post admin requests to the list. They will be ignored.
>>
> Nathan Day
> http://homepage.mac.com/nathan_day/
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
>
>
Diggory Laycock
-----------------------
http://www.diggory.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Get default Browser and Mail Client (From: Nathan Day <email@hidden>)

  • Prev by Date: Re: Applescript Studio Examples - Currency Conv. - SOAP?
  • Next by Date: Re: Data to String: what encoding?
  • Previous by thread: Re: Get default Browser and Mail Client
  • Next by thread: Re: Get default Browser and Mail Client
  • Index(es):
    • Date
    • Thread