MACSCRPT Archives

January 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

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

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

Print Reply
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Mime-version:
1.0
Date:
Mon, 16 Jan 2006 21:01:11 +1100
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Content-type:
text/plain; charset="ISO-8859-1"
Subject:
From:
Shane Stanley <[log in to unmask]>
In-Reply-To:
Content-transfer-encoding:
quoted-printable
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