- Remove duplicate photos mac update#
- Remove duplicate photos mac download#
- Remove duplicate photos mac mac#
Remove duplicate photos mac download#
This might have when you download the same photo several times. These can creep into the system without you knowing about it. // Tested on MacOS 11.1, Photos 6.When you use Mac, you might experience the problem of duplicate photos. // Runs in about 19 minutes for my library of 20,233 pictures on my 2014 MBA. Make sure you have // tested and working backups. This // should be non-destructive, but use it at your own risk. // I don't write much JavaScript, but I much prefer it to AppleScript. Thankfully, // it seems that as long as you confirm the action it will often still work.
Remove duplicate photos mac mac#
Additionally, if your Mac sleeps // while this is running, it may not work properly - I recommend running // `caffeinate -d` from the command prompt or using an application like // `Caffeine` to disable sleep if you're going to run it while AFK. Therefore, if you leave this script // running and aren't there to accept the confirmation prompt, the script may // time out while waiting for a response. // * +/- 10 seconds, since most of my `.heic` files are timestamped ~1 second // after the `.jpg` // // Note that if adding many photos to an album at once, Photos.app may prompt // for confirmation before doing so. These can then be inspected, and if desired batch // deleted with `command` + `delete`.
![remove duplicate photos mac remove duplicate photos mac](https://www.cisdem.com/resource/attach/file/images/find-duplicate-photos-2.png)
If it finds a likely duplicate with at least one copy of the // desired extension, it then moves all copies of the UNdesired filetype to an // album named by the unix timestamp at the time of running within a folder // named `Duplicates`. heic/.jpg duplicates from a selected set of photos in MacOS // Photos.app. // This script uses filename (sans extension), the photo's timestamp*, and // configurable fields in `criteria` (found in the `CUSTOMIZE` section) to find // likely. heic - which nullifies the space savings. Unfortunately, many users like myself // end up with numerous duplicate photos as a result - half. `findJpgHeicDuplicates.js` // - Alternatively, check the post above for a download link // - Make executable: `chmod +x findJpgHeicDuplicates.js` // - Modify the configuration in the `CUSTOMIZE` section if desired // - This is where you can configure getting rid of `.jpg` vs `.heic` // - Select a set of photos in Photos.app // - Run `./findJpgHeicDuplicates.js` // - Process the suspected duplicates in `Duplicates/timestamp` // // Alternatively, users not comfortable with the command line can: // - open `Script Editor.app` on their Mac // - `/System/Applications/Utilities/Script Editor.app` on Big Sur // - create a new script // - Change the language to JavaScript (if `AppleScript` is displayed near // the top left) // - Copy and paste the contents of this script // - You will need to compile with `command` + `k` (or the hammer button) in // between each run or else you will get `Error: Synta圎rror: Can't create // duplicate variable:` // // Apple's newish `.heic` image format compresses photos somewhat smaller than // jpg with some loss of minor details. findJpgHeicDuplicates.js // // // Quickstart: // - Copy this into a file, e.g. Once I changed the setting to View -> Your Photos Only, the script Photos are actually not downloaded locally (if you can identify one thatĬauses an error, right click on the photo and you’ll see an option to save it View that seems to default to Yours & Shared it looks like the Shared
![remove duplicate photos mac remove duplicate photos mac](https://www.remosoftware.com/info/wp-content/uploads/2020/06/app-step6-1024x604.png)
With this script on Monterey it ends up that Photos has a new option under
Remove duplicate photos mac update#
UPDATE 20211203: I started getting Error: Error: Can't get object. Script to find them you can remove them all at one fell swoop by selecting all I’ve tried to include aįair amount of instructions for use in the script itself. This script processes selected photos in Photos.app and makes an albumĬontaining probably duplicates for easy bulk deletion. Of defeats the purpose of using the slightly smaller. Thanks to Apple’s Photo Stream (I think that’s the culprit), I end up with a Bottom Line: Script to remove either JPG or HEIC duplicates from Photos.app