Hi, Im trying to make an active folder that reacts when a video land in the folder and run a shell script doing a FFMPEG command which adds a 3D Lut to the footage. The shell script command works in terminal but when I try to modify it into KM it only shows a short notification macro cancelled and the ffmpeg credentials. How can I see the whole message not only what is compressed into the notification? And anyone seeing why the macro doesn't work?
Thanks for pointing me to the log Folder @tjluoma , that helped a lot! The error seemed to be connected to the -overwrite_original, I ended up bypassing this with saving the file into a subfolder and it works
I got another problem with this macro when copying more than two files, since the macro runs when the first one is finished, it doesn't manage run it on all the files, is there any way of delaying the macro to start until the copying is finished?
I found an AppleScript solution here on the forum to wait until it was all copied.
But from there I have tried to put up a For Each Item in Collection to run through all the files in the folder and still it only manage to finish some of the files, not all, I think I have misunderstood the For Each functionality
The macro fires when the first file is being copied, and AppleScript waits for the copy operation to end, but maybe it starts the conversion after the first file is fully copied and not all of them. Since conversion is long enough to mask that fact you end up chasing the copy algorithm with the conversion algo. Maybe trigger the conversion on unplugging the external drive?
@NikolaKolodziejczyk I ended up triggering it with a keyboard shortcut and that works really good! However I also saw somewhere the possibility of using automator to make a file service from finder. And triggering KM from there. Here is what I got so far:
Thank you The first line worked perfectly! That probably means I had declared the $PATH correctly. But just to clearify the second option, FFMPEG Square in this case is a Keyboard Maestro macro, which file would this then point to? Is there a folder where the KM macros are stored?
I have set up something similar to this. When I drag a file into the trigger folder, the process begins but what I have NO idea about is how far through the process it is. Is there a way to monitor an encode process like this?