The problem is if I “do shell script” then applescript starts the ffmpeg encode and then straight away moves on to the do shell script and emails before the encode finishes.
any ideas where I am going wrong here?
Thanks in advance
L
My problem is if I use only the “do shell script” that I dont see a terminal window showing its progress.
If I “do script” it opens a terminal window and tells me how its going with the encode.
Its something that I really need.
is there a way to achieve both? ie an email and see the progress of the encoding?
tell application "Terminal"
activate
set myshell to do script "/usr/local/bin/ffmpeg
repeat until busy of myshell is false
end repeat
end tell
-- send mail code here