Make Bwana work with recent Safari releases
Make Bwana work with recent Safari releases
- Subject: Make Bwana work with recent Safari releases
- From: Lists <email@hidden>
- Date: Tue, 29 Oct 2013 15:09:25 -0700
I finally got tired of not being able to display a formatted man page in Safari 6 and up using Bwana. For Example, man:ls, in Safari's address bar simply brings up a Google search page - No help.
The following script run from the Scripts menu gets formatted man pages back in Safari (if it is default browser).
# This script snippet will open man pages in Safari 6.x using Bwana. # Prior to Safari v6, typing "man:command," e.g. man:ls, in Safari's location field would open a formatted man page. Now that initiates a search instead. # Run this from the Scripts menu with Bwana installed anywhere you like. Bwana never actually opens but Safari will display a formatted man page for a command entered.
set x to text returned of (display dialog "Enter the name of a Unix manual to open." default answer "ls" buttons {"Cancel", "OK"} default button 2) set mancmd to "man:" & x open location mancmd |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden