Bash shell script?


Posted May 2, 2016, 4:04 pm
I am thinking that I would like to use the command line interface in a Bash shell script on a Macintosh. Is this possible? If so, what would the proper command be? (/Users/kds/Desktop/MyRecordings/Song1.mp3) I can do it through Terminal but am stuck with the shell scripting aspect.

Posted May 12, 2016, 4:57 pm
If you have installed the CLI rather than copying it (it is installed in /usr/local/bin), you just need to use the name and the track (using the full path of the track) e.g.:
id3edsmd -ti "My Title" /Users/kds/Desktop/MyRecordings/Song1.mp3

If you copied the CLI just use the full path e.g.:
/Users/kds/Desktop/id3edcmd -ti "My Title" /Users/kds/Desktop/MyRecordings/Song1.mp3

If you are scripting lots of files, just replace the full file path with the variable you require e.g.:

echo "Parsing directory '$1'..."
for FILE in "$1"/*
    if [[ -f "$FILE" ]]; then
        id3edcmd -ti "A title" "$FILE"

Where $1 is the path used when calling the script.

Posted May 17, 2016, 12:19 pm
Thanks!! I'll give it a try!