Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

thriftinkid

macrumors regular
Original poster
Hey Guys,

I'm sure this is an easy question for you gus, but I'm having some problems. I want quicktime to take every file I have in a folder and convert it to an M-peg4 format. The problem is that quicktime can only do this one at a time. The Script I current have written is opening all the files first, and then trying to convert all the files. How can I rearrange this so it does them one at a time? Thanks as usual for your guys help.

Code:
tell application "QuickTime Player"
	activate
end tell
tell application "Finder"
	set Afolder to "Macintosh:Users:JMJ:Desktop:test" as alias
	set a_list to every file in Afolder as alias list
	repeat with i from 1 to number of items in a_list
		set a_file to (item i of a_list)
		tell application "QuickTime Player" to open a_file
		tell application "QuickTime Player" to export a_file as MPEG4
	end repeat
end tell
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.