On May 11, 2007, at 5:26 AM, Peter Baxter wrote: I have been working with Camcorders recently and find the MOD files that they produce an absolute pest. Changing the form into a dv file is time consuming and very inefficient with the supplied software. Does anyone have a translation script to batch convert folders of MOD files?
If all that this involves is changing the file extension, and not the data, this will do it.
set foo to choose folder tell application "Finder" set bar to (files of foo whose name extension is "mod") try set bar to bar as alias list on error set bar to {bar as alias} end try repeat with foobar in bar if the extension hidden of foobar is false then set flag to false else set flag to true end if set the extension hidden of foobar to true set the name of foobar to the displayed name of foobar & ".dv" if flag is false then set the extension hidden of foobar to false end repeat end tell
-- There is hardly anything in the world that some man can't make a little worse and sell a little cheaper, and the people who consider price only are this man's lawful prey.-- John Ruskin
|