First of all, apologies for my ignorance on the subject. All of this ffmpeg and automation is new for me and sometimes I cannot see even evident things.

I am learning command lines to encode videos (I use FFMPEG to change settings of the video, watermark, all this sort of things to improve my workflow)

Now I am trying to transform those command lines in to Applescript droplets apps to make life easier. Last night I managed to turn my first one in an Applescript app droplet but I am missing the progress which I can see when I use the command shell.


I can see frames per second, how much inside de video ... this sort of info

progress I can see if using the script on terminal window

I would like to know if there is a way to modify / add something on this script to see similar progress, either tell terminal to open while executing the script or a detailed progress bar pop up.

This is the scrip I am currently starting with

for f in "$@"

/usr/local/bin/ffmpeg -i "$f" -vf "drawtext=fontfile=/Library/Fonts/Tahoma.ttf: text='Central Text':\ x=(w-text_w)/2:y=(h-text_h-line_h)/2: fontsize=100: fontcolor=white@0.2" -s 720x406 -c:v libx264 -b:v 1400k -pix_fmt yuv420p -b:a 192k "${f%.*}_watermarked.mov"
  • And what do you have in your droplet – markhunte Mar 17 '15 at 15:46
  • Also have a look at developer.apple.com/library/mac/releasenotes/AppleScript/… – markhunte Mar 17 '15 at 15:53
  • @markhunte , The droplet is the code pasted above. I am sorry, I think didn't understand your question. – Rafael BF Mar 17 '15 at 17:54
  • Just thought you could show the droplet code including the Applescript. I do not think using native Applescript at least you will get this type of verbose feed back to use in a progress bar. You could iterate each file as it changes to the next one in the bath. – markhunte Mar 17 '15 at 18:03
  • @markhunte I would assume the droplet code is just a wrapper script that executes the shell script shown above. – tubedogg Mar 17 '15 at 18:45

If you want to just have terminal open and run you can get an idea from below.

It is not very neat but works of sorts..


on open myFiles
        set bigList to {}
        repeat with i from 1 to number of items in myFiles
            set this_item to item i of myFiles
            copy (quoted form of POSIX path of this_item) & space to end of bigList
        end repeat
     tell application "Terminal"

            do script ("for f in  " & items of bigList as string) & "

    echo  \"$f\"


        end tell
end open

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .