Automator Folder Action not behaving
I have a Folder Action, created in Automator, with the following 5 Actions…
Find Finder Items in ‘Desktop/DROP’ whose file extension is ‘jpg’ or ‘jpeg’
Rename Finder Items: Replace Text ‘_2’, in basename, with nothing (ie: delete ‘_2’)
Change type of images to ‘HEIF’ (Pixelmator Action)
Find Finder Items in ‘Desktop/DROP’ whose file extension is ‘heic’
Move Finder Items to ‘Desktop/COMPLETED’
It works! All jpgs are successfully renamed, changed to .heic and moved, but a random* number of the files remain in ‘DROP’ (as well) and, although they are .heics, the script keeps trying to ‘change’ the filetype to .heic, this slows my Mac† down dramatically and runs the fans. Manually deleting the duplicates solves the problem but…
Why is the script creating duplicates in ‘DROP’?
Why is the script acting on .heic files?
How do I stop it doing this?
*the random files are not necessarily consecutive, I haven’t spotted any reason for those particular files to cause a problem. How many there are also seems random, eg: batch convert 7 files and get 3 random duplicates; batch convert 10 files and get 1 random duplicate!?
†’17 MacBook Pro · macOS10.15.7
MacBook Pro 15″, macOS 10.15