


You may change the shortcut by adding a Filter to the Find Photos action to only scan limited photos. By default, this shortcut will compare all the images in the Photos app, it may take a while to show you the duplicate results. You should use the Safari web browser to add the shortcut. Go to Routinehub to import this shortcut for your Mac. Let me show you how to use it step by step. This shortcut can also scan files on your local storage, so you need to disable iCloud Photos for it to work. You can run this shortcut to remove duplicates from Photo Library and edit it a little bit to remove duplicate photos in Finder. In macOS Monterey or new versions, you can also run shortcuts on Mac, so you can also use this shortcut to remove duplicate photos on Mac. Previously, I created a shortcut, Photos Deduper, for removing duplicate photos and videos on iPhone or iPad. You can use a built-in app Shortcuts to detect and delete duplicate photos and videos in bulk or use a third-party app to monitor and delete duplicate files. I am sure you don’t want to remove duplicate files one by one, so here you can learn a few creative methods to delete duplicate photos on your Mac automatically. Open this to view the names of identical files.Duplicate photos and videos take your Mac storage space and hinder you to locate the right photo you need. The names of duplicate items will be listed in a file named duplicates.txt in the current directory. This method uses a simple checksum to determine whether files are identical. size 20 \! -type d -exec cksum \ | sort | tee /tmp/f.tmp \ | cut -f 1,2 -d ' ' | uniq -d | grep -hif /tmp/f.tmp > duplicates.txt

At the command prompt type cd for example cd ~/Documents to change directory to your home Documents folder.Īt the command prompt, type the following command: find.

Open Terminal from Spotlight or the Utilities folder.Ĭhange to the directory (folder) you want to search from (including sub-folders) using the cd command. Use Terminal (although not recommend due to possibility of deleting wrong stuff). Use apps like: Duplicate Cleaner For iPhotoĬreate Automator workflow (it is not worth the time creating and testing it). I would use the DIY way to make sure it is not deleting unwanted stuff.
