If you run this from the command line (passing the files as arguments) does it still work?
- cfr
0
flapane·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Maybe I understood why sometimes it worked and sometimes not... probably id3tool uses id3v1, and quicktime and itunes fetch the previous id3v2 tags. In fact my script works if the song DOESN'T HAVE tags, but it works if the mp3 doesn't have tags. I asked a friend to compile id3v2 from fink, it seems to work flawlessy, I'll keep you updated.
0
flapane·
Imported from the Apple Support Forums via the Wayback Machine 🔗
There's a step ahead, apparently the automator script WORKS, the only problem is that the artist name is "/path/to/mp3/ARTISTNAME", while if I run the script in a bash shell, the artist name is correct and it is "ARTISTNAME", how "basename" output suggests, why?
for file in "$@" do a=`basename "$file" .mp3 | sed -e 's/.* - //'` b=`echo "${file%%-*}"`