Re: Man entry to pdf variant command
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