Kill MacOS Processes by Name

I have a cron job that opens a program every day at a certain time. How can I also close it with a cron job? To open: 45 9 * * 1-5 open -a "SomeProgram" And to close a few minutes later: 50 9 * * 1-5 killall "SomeProgram" See man killall for more information.

March 17, 2025

Understanding Scrollbar Visibility

When doing web programming in a context where scroll might be expected, you may see some surprising behavior in the scrollable HTML– an inexplicable gray bar on the bottom or right of the element. One culprit, on Mac, is the user’s scrollbar setting. As a UX and accessibility aid, Mac allows users to always show scrollbars when they are available. Considering this feature as a programmer, you can make sure you only offer scrolling when it makes sense, and educate users who don’t know they have this setting enabled. ...

April 11, 2024

XCode Run Hotkey

⌘ + R.

January 30, 2024

Zoom and Scroll in Figma

When viewing a Figma design file, you can zoom in/out with CMD and up/down on a trackpad or magic mouse. Scroll left or right with one-finger swipe left or right. Zoom and scroll; along with adding comments and copying CSS, that’s most of what I do in Figma. I’m sure that these commands are useful in many other settings, but I find them especially valuable in a Figma file, which can feel otherwise challenging for me to navigate.

December 20, 2022

Pipe to pbcopy

Adding | pbcopy to the end of any command will send the standard output to your clipboard. ls -al | pbcopy inside a rails project directory allowed me to paste this: Gemfile Gemfile.lock README.md Rakefile app bin config config.ru db features lib log public script spec test tmp vendor

August 26, 2018