Apple remove 1 second clip on .MOV files
Some time ago a friend found a way to convert all his avi files that he had acquired and turn them into .mov files for his Apple TV, this allowed him to then add the filed to ITunes (something that is nor easily done with avi files). this script added a 1 second clip to the .avi file and renamed it .mov, and this seemed to pass the checks by ITunes
However, he then realised, that this did not necessarily work in other players, and wanted to remove the file to recreate the original avi. The guys at macscripter have written some awesome code to do this, See their post here: http://macscripter.net/viewtopic.php?id=27423
The code is as follows: Though read their blog post, there is more information on there than just code
property mytitle : "remsec"</code> on open droppeditems try set droppedfiles to {} repeat with droppeditem in droppeditems set iteminfo to info for droppeditem if not folder of iteminfo then set droppedfiles to droppedfiles &amp; (droppeditem as Unicode text) end if end repeat if droppedfiles is {} then return set countdroppedfiles to length of droppedfiles set stringlist to "" repeat with i from 1 to countdroppedfiles set droppedfile to item i of droppedfiles if i is not equal to countdroppedfiles then set stringlist to stringlist &amp; (quoted form of POSIX path of droppedfile) &amp; space else set stringlist to stringlist &amp; (quoted form of POSIX path of droppedfile) end if end repeat set foundationtoolpath to quoted form of POSIX path of (((path to desktop) as Unicode text) &amp; "remsec") -- a more convenient way to operate the script is to place the remsec foundation tool right inside the script bundle: -- set foundationtoolpath to quoted form of POSIX path of (((path to me) as Unicode text) &amp; "Contents:Resources:remsec") set command to foundationtoolpath &amp; space &amp; stringlist set output to do shell script command on error errmsg number errnum tell me activate display dialog "Sorry, an error occured:" &amp; return &amp; return &amp; errmsg &amp; return &amp; "(" &amp; errnum &amp; ")" buttons {"OK"} default button 1 with icon stop giving up after 30 with title mytitle end tell end try end open