Page 1 of 1

Bwana: Generate HTML but don't open

Posted: Fri Oct 22, 2010 4:37 pm
by killer54291
Hello, I've been using Bwana for a while, and it's very useful. However, there's one thing I want to do and that requires that the man page is just generated, not opened in the browser. Would it be possible to have that happen? I just want the HTML file available.

Re: Bwana: Generate HTML but don't open

Posted: Sat Oct 23, 2010 5:17 am
by Conor
There are two options, one is to re-write the scripts.strings file inside the Bwana package to ignore the open HTML command. For Safari it would be changing the open URL line to:

Code: Select all

tell application \"Safari\"\n end tell
The other is to get the original source code from BitBucket and comment out the internals of the method (openInBrowserThePath:inNewWindow:) that open the web browser. Rebuilding a modified copy of Bwana would require Xcode. With the code you can go further and then do what you have in mind automatically.