• 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: Bob Stern via AppleScript-Users <email@hidden>
  • Date: Fri, 29 Jan 2021 12:23:14 -0800

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
 _______________________________________________
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: Laine Lee via AppleScript-Users <email@hidden>
References: 
 >Man entry to pdf variant command (From: Laine Lee via AppleScript-Users <email@hidden>)

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