I was shooting photos/videos with an iPhone 8 and syncing using macOS iTunes & Photos on High Sierra.
For a period of two years, I have somehow ended up with a duplicate of every photo—several thousand duplicates.
Each duplicated photo is in two file types, one is in .HEIC
and the other is in .JPG
.
Each video from the same period has only one copy, in .MOV
format.
I am assuming that it is prudent to delete the .jpg
files and keep the .heic
ones, since the latter can store live photos and since I can generate .jpg
from them if needed.
How do I delete thousands of .jpg
files, each a duplicate of a .heic
file? The duplication started after I moved to Photos
from iPhotos
. A script that does the job with no confirmation is fine (I'd test it on one day).
Best Answer
One option is to use an AppleScript (or JavaScript for Automation, rather) such as the one I posted about here. I've copied its contents below*, and I've tried to include a fair amount of instructions between the post and comments in the code.