macOS
macOS is the OS I use on a day-to-day basis, and both my personal and work computers are Macs.
6 articles
A tale of two path separators
macOS allows both the slash and colon as path separators, and this caused me no small amount of confusion.
Programatically finding the original filename of a photo in the macOS Photos Library
If you’re looking at a UUID’d file in the PhotosLibrary package, how do you find its original filename?
How to ignore lots of folders in Spotlight
A script that allows me to ignore folders like “target” and “node_modules”, so they don’t appear in search results.
Using qlmanage to create thumbnails on macOS
How you can invoke Quick Look on the command-line to generate high-quality thumbnails.
Clearing disk space on OS X
A few tools and utilities I’ve been using to help clear disk space on my Mac.
Export a list of URLs from Safari Reading List
A Python script for getting a list of URLs from Safari Reading List.
8 notes
Don’t show Dock icons from apps on another device
The name of this feature is “Handoff”, and that’s where you’ll find the setting for it.
How to run a task on a schedule on macOS
Create a
LaunchAgentwith aStartCalendarIntervalorStartIntervalthat defines how often you want the task to run.Where does AirDrop save files on macOS?
Look in
/private/tmp.How can I work out what program is keeping a disk open?
Use
sudo lsofand grep for the name of the disk you’re trying to eject.How to find all of Apple’s system icons
You need to look for files named
*.icnsinside any subdirectory ofCoreTypes.bundle.How to get the selected item in Finder using AppleScript
Exclude files from Time Machine with
tmutil addexclusionRun a script on macOS on a schedule using a LaunchAgent