(I have also tried using pbpaste and setting a named variable to the path instead of stdin, but still no success.)
I have added some steps to the KM script to see where it's failing, and get correct expected results at every stage, including tailing /tmp/quicklog (which shows the correct path).
If I run the last line above manually, replacing $mp3 the path copied from the line in the /tmp/quicklog file it succeeds without a problem.
I include the full path to Lame as you can see above, so I'm hoping it's not a path issue.
❯ which lame
/opt/homebrew/bin/lame
Can someone please help me figure out where I'm going wrong? I thought that by using full paths I would avoid env issues.
Thanks for your reply Kevin.
That quicklog file is just a troubleshooting measure to try figure out why it's not working. It prints the contents of the clipboard, which is the
I did the following instead:
which simply writes out the whole command into that temporary log file. If I copy and paste the contents of that line into a shell it works perfectly, which is what had me stumped.
I ended up writing a wee python script to do the actual encoding, then kicked that off with KM, sending the path to it.