Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Read Unix manpages in Safari via the shell and Bwana' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Read Unix manpages in Safari via the shell and Bwana
Authored by: covisp on Mar 19, '06 07:15:47AM

While typing "open man:man" at the command line does work, the problem is that it loads that into the current browser window. This is never what I want.

However, the script posted has a rather long delay between opening a new tab and loading the man page into the new tab.

It's too bad that Applescript cannot tell Safari to open a URL in a new tab, or even a new window, without using the GUI Scripting, which is so very slow.

I think something might be possible with the do javascript command, however.

do JavaScript "window.open('man:man', 'bwama')" in document 1

works, but despite naming the window, it still loads the url into whatever window/tab is frontmost when it finally gets around to actually loading the URL. On my machine that's a delay of three or four seconds, easily long enough to have switched windows. In short, this is no better than the previous solution. I hope that this might lead someone to a solution that does work.



[ Reply to This | # ]