brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Finder can rename a whole batch of files in one go

Files
~/tips/tip-macos-finder-batch-rename

Select the files > Control-click one > Rename

Renames many selected files at once with replace, add or numbered name formats.

I see people download a renaming app for this, and I get why: Finder hides the feature well. Select a bunch of files, Control-click one of them and choose Rename. Finder opens a small Rename Finder Items window that works on every selected file at once.

The pop-up menu in that window has three modes. Replace Text swaps a piece of text in every name (the Find field and the “Replace with” field). Add Text puts something before or after the current name. Format throws the old names away and builds new ones from a name you type plus an index, a counter or a date, with a start number you choose.

Select the files > Control-click one > Rename
Format > Custom Format: Leiden-trip > start number: 1
Rename

Say you have forty photos called IMG_4012.HEIC and up. With Format, a custom name like Leiden-trip and the index after the name, they come out numbered in one click. Replace Text is my pick for the smaller jobs, like turning every “final_v2” in a folder of documents into “final” without touching anything else.

The caveat is about extensions. Apple warns that if you change a file’s extension, the app that made it may not open it anymore, so keep .jpg, .pdf and friends out of your find and replace text. Apple also says to leave app folders, system items such as the Library folder and your home folder alone. My advice is to try a new pattern on two or three copies first, because a Format rename replaces every name you selected.

Further reading: Rename files, folders, and disks on Mac (Mac User Guide)

More Files tips sha256sum -c --ignore-missing SHA256SUMS xxhsum -H64 backup.tar > backup.xxh unzip -j archive.zip -d out/ Files > More > Select > pick files > More > Compress ls -lhS /var/log All Files tips (15) All topics

Link