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


Click here to return to the '10.4: Use Preview to view formatted man pages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Preview to view formatted man pages
Authored by: feardiagh on Dec 30, '05 12:50:45PM
An applescript I whipped up for even lazier peoples. It has no error catching or anything of that nature, but it doesn't do anything bad if you feed it garbage, just opens preview and enters a couple of file not found lines in your log. Anyway, here it is. Enjoy:


set user_input to display dialog "Plese enter the man page to format." default answer "man" buttons "Format" default button "Format"
set manpage to text returned of user_input
set command to "man -t " & manpage & " | open -f -a /Applications/Preview.app"
do shell script command



[ Reply to This | # ]