Using Automator for app to create .ISO
Hello,
I have a very useful Applescript for using ffmpeg to convert video files. Of course within that script is a Terminal script for actually running ffmpeg.
It looks like this:
on run {input, parameters}
tell application "Terminal"
activate
set filesString to ""
repeat with file_ in input
set filesString to filesString & " " & quoted from of (POSIX path of file_)
end repeat
do script "for f in" & filesString & "; do
/Users/Mike/Documents/Scripts/ffmpeg -i \"$f\" -acodec pcm_s16le -vcodec v210 -level 1 -coder 1 -context 1 -g 1 -qscale 0 ${f%.*}.mov
end tell
return input
end run
It works really well to just drop a file onto the app and have it run. But now I want to create ISO images from DVDs that I have created in the past. The script above looks for the input path and makes in the output path of the new file with the same name. I want to do a couple of different things.
First, I obviously can't return the new file to the DVD but I'm not sure how to change the script correctly, but I've highlighted where I think it probably needs to change. Additionally I would like a user prompt to choose a destination. I was really close with:
"set myPath to choose folder with prompt "choose a folder:"
It would be nice to both set the path and the filename at that point.
I also really like that I can see the progress of the ISO creation in Terminal.
I am taking a very basic course to learn Applescript but I'm just not quite there yet. Help please?
Mac OS X (10.6.8), null