I am working on automating some file maintenance after working on a particular folder. I've been able to automate tagging of files from DGMLive by utilizing Hazel to rename the included PDF artwork file to the date of the release and Automator to extract the text from the PDF and save it as a text file. Yate then uses the file name of the song file to set the title and the extracted text file to fill in other fields, etc. This is all working perfectly for me.
I would like to setup an action that will then clear out the files I no longer want afterwards. Here is what I've done so far…
Get Property Path to Folder > Variable 14
Copy the Variable 14 field to named variable 'Path"
Contents of Folder "\v14" (Files filtered by 'flac,txt') to named variable 'FileList'
Append "/\<FileList>" to named variable 'Path'
Currently, I have a Prompt coming up to display the variables before I add the Trash Items action. The variables show this:
FILE LIST: file.flac/~file.txt
PATH: /PATH TO FOLDER/file.flac/~file.txt
I'm lost on how to get each file in the file list to append to the path to folder.
BTW, I DO want to remove the flac file because I'm using a transcoded version to ALAC in my library.