Re: Man entry to pdf variant command
Re: Man entry to pdf variant command
- Subject: Re: Man entry to pdf variant command
- From: Laine Lee via AppleScript-Users <email@hidden>
- Date: Fri, 29 Jan 2021 14:32:26 -0600
- Thread-topic: Man entry to pdf variant command
On 1/29/21, 2:24 PM, "Bob Stern via AppleScript-Users"
<email@hidden> wrote:
On 29 Jan 2021, at 12:05, Laine Lee wrote:
ffmpeg -h full | groff -Tps | open -f -a /Applications/Preview.app
but the resulting pdf isn’t very well formatted. What might work better?
I use:
set x to the clipboard
display dialog "Open Man Page in Preview:" default answer x
set x to text returned of result
do shell script "man -t " & x & " | open -f -a /System/Applications/Preview.app"
For versions of MacOS older than Catalina, delete "/System" from the path.
Bob Stern
Thanks, Bob.
That gives me just about the same result as the “groff” version, but with the
same formatting/readability issue. But after looking again, I think what I need
is to specify a monospace font for the output. Is there a way to include that
request in the command line?
Laine
_______________________________________________
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