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 <parimal....@webyog.com> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to