MACSCRPT Archives

January 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Shane Stanley <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Mon, 16 Jan 2006 21:01:11 +1100
Content-Type:
text/plain
Parts/Attachments:
text/plain (14 lines)
On 16/1/06 8:58 PM, "Chuck Pelto" <[log in to unmask]> wrote:

> How can I capture the information in the manual to a text
> document? Simply?

Put this in your Script menu:

set theResult to (display dialog "Command to man:" default answer "")
do shell script ("man -t " & (text returned of theResult) ¬
    & " | open -f -a /Applications/Preview.app")

-- 
Shane Stanley <[log in to unmask]>

ATOM RSS1 RSS2