Re: Is it possible to open a URL in a specific browser rather than the default one ???
Re: Is it possible to open a URL in a specific browser rather than the default one ???
- Subject: Re: Is it possible to open a URL in a specific browser rather than the default one ???
- From: Graham Cox <email@hidden>
- Date: Tue, 2 Jun 2009 23:15:46 +1000
On 02/06/2009, at 11:04 PM, Chunk 1978 wrote:
i hate firefox, and although i have it on my system for backup, it
would kinda piss me off if an app launched it for me instead of safari
(which is often always open).
i'm not sure you can do this without a hack, but i'm curious why you
want to open in firefox as default?
On Tue, Jun 2, 2009 at 8:56 AM, Parimal Das <email@hidden>
wrote:
Hello
I want to open a particular URL in a specific browser (say
firefox).If
firefox is not present then open it in Safari.
I am using NSWorkspace method openURL:
but it always open the url in the users default browser.
Is it possible to open a URL in specific browser ??
While that was my first thought (the user should have their choices
honoured), there is one class of apps that might legitimately want to
do this - web page editors that have a "Preview In...<browser X>"
command.
Launch Services methods such as LSCopyApplicationURLsForURL would
probably allow you to do that.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden