Opening local HTML file in new Safari tab?
Opening local HTML file in new Safari tab?
- Subject: Opening local HTML file in new Safari tab?
- From: Jeff Hunter <email@hidden>
- Date: Fri, 17 Oct 2003 21:16:50 -0400
I have Safari set to open links from external applications in the
current window, and tabbed browsing is enabled.
If I have a Safari window open, then I call
[[NSWorkspace sharedWorkspace] openURL:[NSURL
URLWithString:@"
http://www.apple.com"]]
the site will be loaded in a new tab in the currently open Safari window.
However, if I call
[[NSWorkspace sharedWorkspace] openURL:[NSURL
URLWithString:@"file:///Users/Foo/MyFile.html"]]
the HTML file will be opened in a new Safari window.
Does anyone know how I can get Safari to load the local HTML file in a
new tab instead of opening a new window? Perhaps by dropping down to the
LaunchServices level there is a flag I can use to fool Safari?
Thanks,
Jeff Hunter
_______________________________________________
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.