Apologies if this question gets asked often but I promise I have spent many hours researching, writing & editing before coming here.
It seems that there are many examples & options to do the classic manoeuvre of files into folders that derive their title from the filename, but as complete beginner I seem to break things when I try to build, tweak or amend scripts.
I have managed to achieve roughly what I’m aiming for in two parts with Automator, but I have never managed to append or merge them. It would be great to have one script as a service to make it a one-click option.
Does anyone know of a template out there that would follow my workflow plan below, or anybody who could point me in the right direction for help?
I’d like the script to go as follows:
———————————————————————————
START OF SCRIPT
— Get contents of currently selected folder
— Search through the filenames in that folder for one of three specific phrases
[i]In my case those key phrases to search will be:[/i]
MASTER
STREAMING MASTER
VINYL MASTER
(Example filename: ’Song Name - Revision 1 - VINYL MASTER 96k 32bit.wav’. Sometimes the last characters in the filename will be ‘44.1k 16bit.wav’ which means I can’t use the function to count back through the characters to get to the phrase - although it’s still the same number of spaces.)
— Create folders based on the above phrases (if not found then don’t create a folder)
— Move all the files in to the appropriate folder
— Add the character ’s’ at the end of the newly created folder names to make it plural - so MASTER becomes MASTERS for example.
— Create a new folder at the same root level as the original, selected folder and call that one ‘FINAL MASTERS’
— Copy the three folders (and their contents) created in step 3 to the new ‘MASTERS’ folder.
END OF SCRIPT
———————————————————————————
Also, and this maybe a stupid question, is Automator just a GUI for scrip editing? If so, is there a way to open Automator files in Script Editor to see how the script is compiled or edit them? I have tried but it just appears as gobbledygook that won’t compile.
Model: Mac Pro 2010
AppleScript: 2.7
Browser: Safari 605.1.15
Operating System: macOS 10.14