From: Andreas Gerler Date: Wed, 18 Jun 2025 12:55:32 +0000 (+0200) Subject: printing on osx X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=ea22d824726325ac17d329b33f3454b79bd252ea;p=emacsconfig.git printing on osx * bba.org: use ghostscript to generate pdf and open it in default app because Sonoma lost ability to directly print postscript. --- diff --git a/bba.org b/bba.org index b2e1349c..b86e6ce7 100644 --- a/bba.org +++ b/bba.org @@ -172,7 +172,22 @@ from bash. (push "/opt/local/share/info" Info-directory-list))) #+END_SRC +* print on osx +[2025-06-18 Wed 14:44] +#+begin_src sh :tangle ~/bin/lpr-ps + #!/bin/bash + uuid=$(uuidgen) + gs -sDEVICE=pdfwrite -o $TMPDIR/$uuid.pdf - && open $TMPDIR/$uuid.pdf && sleep 1 && rm $TMPDIR/$uuid.pdf +#+end_src + +#+begin_src emacs-lisp + (if (string-equal system-type "darwin") + (if (file-exists-p "~/bin/lpr-ps") + (setq ps-lpr-command "~/bin/lpr-ps") + ) + ) +#+end_src * testing steampipe [2023-04-05 Wed 13:18]