RE: Quicktime Batch file
RE: Quicktime Batch file
- Subject: RE: Quicktime Batch file
- From: "Perbix, Michael" <email@hidden>
- Date: Wed, 9 Oct 2002 11:00:39 -0400
- Thread-topic: Quicktime Batch file
Could anyone take a quick look at this script, and make a change that allows it to also handle sub-folders? The script itself works flawlessly on a folder of movies (THANK YOU CHARLES), but I also need it to correctly handle sub folders maybe 1 or 2 levels deep.
Thank you very much for your help, and I will say that the script itself works very well.
-Mike
The script itself came from R Charles Flickinger as a reply to my Quicktime Batch File message and was also posted to this list.
-------------------------------------
Michael Perbix
Telecommunications Specialist
Lower Merion School District
(610) 645-1964 - Phone
(610) 896-8224 - Fax
tell application "Finder"
set tempFolder to choose folder as alias
set targetFolder to choose folder as alias
set theMovies to list folder tempFolder without invisibles
repeat with i from 1 to the count of theMovies
set aMovie to (item i of theMovies) --as alias
set originalMovie to ((tempFolder as text) & (item i of theMovies)) as alias
with timeout of 3600 seconds
tell application "QuickTime Player"
launch
activate
try
open originalMovie
tell application "Finder"
set filename to aMovie
set newFile to ((targetFolder as text) & aMovie & ".mov")
end tell
export movie 1 to file newFile as QuickTime movie using most recent settings with replacing
on error
display dialog the result
end try
close movie 1 saving no
end tell
end timeout
end repeat
end tell
Watch for line breaks in the wraps.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.