Hi there!
I cobbled together some code to make a handy operation that separates Jpegs from the Raw files on a SD card. I have it scripted to put the Jpegs in their own folder and it’s working how I want it to. However, the script takes a very long time when processing hundreds of files. Is there a way to speed the process up?
-Aaron
For me the “Main Folder” prompt is EOS_DIGITAL → DCIM
set main_folder to (choose folder with prompt "Choose the main folder")
tell application "Finder"
tell application "Finder"
set newFolder to make new folder at main_folder with properties {name:"JPEGs"}
end tell
set sub_folders to folders of main_folder
repeat with each_folder in sub_folders
move (every file of each_folder whose name extension is in {"jpg"}) to newFolder with replacing
end repeat
end tell