-- Adds an empty text track to Quicktime file so that Compressor can overlay on DNxHD video -- Requires Apple QuickTime Player 7, available from http://support.apple.com/kb/DL923 -- Thanks to Travis for the fix: http://community.avid.com/forums/p/94827/569550.aspx#569550 -- Thanks to regulus6633 for basis of script: http://www.macscripter.net/viewtopic.php?id=21482 -- This script by Iwan on run argv if (count of argv) is 0 then try set target to (choose file with prompt "Choose movie file:") on error return "DNxHD hack: No file specified." end try else set target to item 1 of argv as POSIX file end if set temp_file to (path to temporary items folder as text) & "qt_text_track.txt" set temp_path to POSIX path of temp_file do shell script "if [ ! -f '" & temp_path & "' ]; then echo '{QTtext}{width:1}{height:1}{keyedText:on}' > '" & temp_path & "'; fi" tell application "QuickTime Player 7" launch set open movie in new player to true set ignore auto play to true set ignore auto present to true try open temp_file tell document 1 tell track 1 to set name to "Text Track" rewind select all copy select none close saving no end tell on error return "DNxHD hack: can't open text track file " end try try open target if saveable of document 1 is true then if not (exists track "Text Track" of document 1) then tell document 1 select none rewind add rewind select at 0 to 0 end tell close document 1 saving yes else close document 1 saving no return "DNxHD hack: this movie already has a text track." end if else close document 1 saving no return "DNxHD hack: this movie cannot be copied, edited, or saved." end if on error return "DNxHD hack: can't open movie file '" & target & "'." end try end tell end run