macOS Automator PDF Actions
Here is a macOS Automator script to watermark a PDF, and also set metadata like author and title. Followed by a more advanced script to do all that an also set an owner password and access permissions... auto-magically.
learnings
Here is a macOS Automator script to watermark a PDF, and also set metadata like author and title. Followed by a more advanced script to do all that an also set an owner password and access permissions... auto-magically.
Something totally different today... As an AFOL, I created a simple Lego MOC, combining 70821 “Emmet and Benny’s ‘Build and Fix’ Workshop!” and 70841 “Benny’s Space Squad”.
I’m never quite satisfied with the various methods of creating keyboard shortcuts (hotkeys) on macOS... Here I go again, this time using a small open source utility called skhd - a simple hotkey daemon for macOS.
Almost a year ago, Tencent researchers released their GFPGAN Face Restoration, an AI model which is trained specifically on faces, to better upscale and restore details in low-resolution or damaged portrait photos. I thought I’d give it a whirl.
It’s been over a year (or two) since three major browsers enabled HTTP/3 using the QUIC protocol over UDP. Chrome and Edge enabled HTTP/3 by default in April 2020 and Firefox followed “shortly after” in April 2021. I am not sure - does Safari in macOS Monterey 12.5, released July 2022, enable HTTP/3 by default?
Did you know it is possible to run x86_64 Docker containers on an ARM-based M1 mac? It’s quite staightforward with Multipass and Docker (if you are new to Multipass, check out my Multipass for Docker containers on macOS post from a few months ago).
I’ve known that it is possible to create snippets in Visual Studio Code. Recently, I discovered a few tweaks to help me when taking notes. Here, I share a snippet for inserting the date and time in the format of my choosing in a Markdown note.
I’ve not posted anything in a long time, so I thought I’d dig up something from a long time ago. Once boring day, many moons ago, I stumbled upon a simple console-based Solitaire game, tty-solitaire by Murilo Pereira.
Ever wonder how to create a custom theme for both fonts and colours (a.k.a. designs) in PowerPoint on macOS? In PowerPoint for Windows, is a GUI to do this, but this is lacking in the macOS version. However, it is still possible via custom XML configuration files.
I previously setup Lima as a replacement for Docker Desktop on macOS. A while ago I tried Multipass by Canonical, which makes it really easy to spin up a Ubuntu VM (using Hyperkit) without all the setup and installation typically required with Virtual Box or QEMU.
I accidentally added an incorrectly spelt word to the macOS spelling dictionary via an Add to Dictionary menu item. Surprisingly, there was no inverse “remove from dictionary” option to undo this! Additionally, I realized there is no System Preferences page to to edit the custom dictionary. There are two ways to fix this with macOS (but none for iOS).
I was not satisfied with my last macOS Shortcut to convert image format and paste. The simple version forced me to choose between PNG and JPEG, and the complex version was too slow - specifically, the Find All Windows action. So here we go again...
I recently wanted to convert an Windows Enhanced Metafile (EMF) to SVG. I used an open source conversion library called libemf2svg by Carpentier Pierre-Francois (Kakwa).
In the macOS Monterey Shortcuts Gallery, there are Shortcuts to “Tile Last 2 Windows”, “Tile Last 3 Windows” and “Tile Last 4 Windows”. This is my single combined version for any window (not just the last x).
I have a hangup about Microsoft Office on macOS - it often elects to paste images from the clipboard in TIFF format, instead of PNG or JPG, which results in massive files, be it PowerPoint .PPTX presentations, Word .DOCX documents or Excel .XLSX spreadsheets. Enter: A new macOS Shortcut to convert clipboard images to (lossless) PNG or (lossy) JPG.
Here is a macOS Shortcut to take a screenshot and extract text from it using Optical Character Recognition (OCR). I find this useful to copy text from e.g. a presentation or video during a virtual call, etc.
If you use an external keyboard on iPad, this is the most important thing to do - remap a key like the fn key to the globe 🌐 key. Here is how I do it for an older Apple wireless keyboard like the second generation A1255 or third generation A1314.
Today’s post will be a long one - recently, Docker announced some changes to the Docker Desktop license, so I figured I’d check out the Lima for macOS instead. As always, I end up complicating things by doing everything my way...
A few posts back, I described my no-code approach to customizing my MacBook touch bar in Visual Studio Code, where I used Apple’s SF Symbols 3 Beta icon library. Now, Apple has release a new beta of SF Symbols that makes the process easier!
I stumbled upon a post entitled “Piping stdout and stderr to Preview” by Erica Sadun - the cool bit that caught my attention was about redirecting man pages (UNIX help) to Preview on macOS. But this got me thinking... to redirect the output to Visual Studio Code instead!