I would like to make an iTunes auto-tagging script. Basically, what it does is this:
Can anyone here point me in the right direction? What I'm struggling with is figuring out how to search for a file on my computer with AppleScript, then do something with the search result (there should only be one result - I could guarantee that by limiting the search to only the folder of interest, but again, I'm not sure how).
- Loop through all the selected songs
- Find each song file on my computer (in the form filename.ext) - the song names in iTunes contain the original extension so I know what to search for
- Get the containing folder of the song file and set that to the song's Album tag
- Get the containing folder of the containing folder of the song file and set that to the song's Artist tag
Can anyone here point me in the right direction? What I'm struggling with is figuring out how to search for a file on my computer with AppleScript, then do something with the search result (there should only be one result - I could guarantee that by limiting the search to only the folder of interest, but again, I'm not sure how).