Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.6: Use AppleScript for precise trimming in QuickTime X' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Use AppleScript for precise trimming in QuickTime X
Authored by: philostein on Mar 08, '10 09:13:40PM
Hi, nice tips guys. I had trouble running mr. applescript's script - the time markers work well, but I got 5 identical movies. Perhaps keystroking 'z' using System Events is causing a problem? I've taken the liberty of adjusting the script so it closes and opens Document 1 instead:
mr applescript's QuickTime Player script PhilHints branch.scpt
QuickTime Player occasionally fails to complete the export process though.

I export movies linearly by using this code:

try -- Make sure file exists first
tell application "System Events" to physical size of file target_file
exit repeat
on error a number b
beep 1
end try
end repeat

repeat -- File only has physical size when completed
tell application "System Events" to set _size to physical size of file target_file
if _size ≠ 0 then exit repeat
delay 2
end repeat

Exports only have physical size after the export is complete.

I've incorporated the above code into the new script.
Cheers, PhilHints

[ Reply to This | # ]