Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using Adobe Media Encoder CS6 (on Mac OS X Mountain Lion) to do a big encoding job, which will take about 6 hours.

I need to run a terminal command after my encoding is done. (The command is to upload the encoded files to a remote server.)

Is there any way I can trigger this command automatically when the encoding queue completes?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

There seem to be two parts to the question:

  1. Is it possible (to launch a terminal command after encoding is done)?
  2. How to do it?

  1. Yes it is, via a script that would simulate "watch folder" behaviour:

    • watch for files in a specified folder
    • once a file is there, wait for it to becomes available (if it isn't outright): not being used by another process
    • once it's available, run a specified command (upload, etc.)
    • delete or move the file when done - otherwise the script will attempt to repeat the process

AME would have to be set to encode files into that "watched" folder, and the script running in infinite loop would pick it up from there.

  1. Not sure if it can be done in BASH; certainly doable in perl.
share|improve this answer
    
Thank you 50-3 for the edit: part 2 of the answer is numbered "1" rather than "2" - any way to change that? –  kindzmarauli Apr 3 at 9:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.