I'm very new to using Automator (and ffmpeg), but I will try to explain what I'm trying to do.
I need to concatenate 3 .mp3 files (Intro, File, Outro). I want to create an automated process that will allow me to drop any file into the directory and automator will automatically execute the ffmpeg process.
Here is what I have tried (but not working):
*edit* this is using Applescript */edit*
I've placed the intro/outro.mp3 in a separate directory and am wanting to call them into the concatenate process. Ideally, it would concatenate intro.mp3, $f, outro.mp3 and store it in the next directory (step3), with the same file name that it started with.
*edit 2* I'd also like to remove the .mp3 in directory "step2" once the process is done
Can anyone give me a hand, or point me in a better direction? Please don't flame me too hard! Thanks!!!
I need to concatenate 3 .mp3 files (Intro, File, Outro). I want to create an automated process that will allow me to drop any file into the directory and automator will automatically execute the ffmpeg process.
Here is what I have tried (but not working):
*edit* this is using Applescript */edit*
Code:
on run {input, parameters}
tell application "Terminal"
do script "cd /Users/xxxxxxx/Documents/itunesu/automator/step2/"
do script "for f in *.mp3
do
cat ../files/intro.mp3 \"$f\" ../files/outro.mp3 > ../step3/\"$f\"
done" in window 1
end tell
end run
*edit 2* I'd also like to remove the .mp3 in directory "step2" once the process is done
Can anyone give me a hand, or point me in a better direction? Please don't flame me too hard! Thanks!!!
Last edited: