I have an ID3 Editor with a line command tool, id3edcmd
To install the command line tool:
Copy the tool 'id3edcmd' to your bin folder e.g. /Users/<username>/bin, or to the main bin folder '/usr/local/bin' for full terminal support.
Note: You can use the tool from any folder.
I copied it into
- Code: Select all
/usr/local/bin
From the man page the command I need is;
(1).
- Code: Select all
Usage: id3edcmd [options] file [file]...
(2).
- Code: Select all
-en text Set the name of the person or organisation that encoded the track
I've run the command inside terminal, successfully;
- Code: Select all
id3edcmd -en 'LAME 3.98' /Users/neilmcg/Desktop/test/Disclosure\ -\ Feel\ Like\ I\ Do.mp3
The command tool needs the complete path to the mp3 file.
I then moved into Hazel.
(OS X 10.11.6) - Version 4.0.5

Filter the selection to mp3 files

The command line is set to
- Code: Select all
/usr/local/bin

I've then tried 4 variations;
None of them work;
- Code: Select all
id3edcmd -en 'LAME 3.98' /Users/neilmcg/Desktop/Test/$1
- Code: Select all
id3edcmd -en 'LAME 3.98' /Users/neilmcg/Desktop/Test/{$1}
- Code: Select all
id3edcmd -en 'LAME 3.98' $1
- Code: Select all
id3edcmd -en 'LAME 3.98' {$1}
From the Console, error is,
All fail - with this logged in console;
- Code: Select all
Rule encoded with Audio Hijack -> LAME 3.98 matched.
Exception caught while executing shell script: Couldn't posix_spawn: error 13
[Error] Shell script failed: Error processing shell script on file /Users/neilmcg/Desktop/test/Disclosure - Feel Like I Do.mp3.
Shellscript exited with non-successful status code: -900
id3edcmd needs the full path to the file, perhaps the problem is the \ escape used in terminal for spaces in the path - I'm guessing.
Any idea why it's failing and how to fix it? Much appreciated.