• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Man entry to pdf variant command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Man entry to pdf variant command
      • From: Axel Lüttgens via AppleScript-Users <email@hidden>
References: 
 >Man entry to pdf variant command (From: Laine Lee via AppleScript-Users <email@hidden>)
 >Re: Man entry to pdf variant command (From: Bob Stern via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: Man entry to pdf variant command
  • Next by Date: Re: Man entry to pdf variant command
  • Previous by thread: Re: Man entry to pdf variant command
  • Next by thread: Re: Man entry to pdf variant command
  • Index(es):
    • Date
    • Thread