Bwana: Generate HTML but don't open

Tell us about your wildest feature dreams. Or just harmless suggestions for improvement.
Post Reply
killer54291
Inductee
Inductee
Posts: 1
Joined: Fri Oct 22, 2010 4:30 pm

Bwana: Generate HTML but don't open

Post 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.
User avatar
Conor
Top Dog
Posts: 5345
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Re: Bwana: Generate HTML but don't open

Post 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.
Post Reply