Re: Quicktime Batch file
Re: Quicktime Batch file
- Subject: Re: Quicktime Batch file
- From: R Charles Flickinger <email@hidden>
- Date: Tue, 8 Oct 2002 02:04:37 -0700
Message: 12
Date: Mon, 7 Oct 2002 11:48:56 -0400
Subject: Quicktime Batch file
From: Michael Perbix <email@hidden>
To: email@hidden
I would like to take a directory of movies which are all in a given
format and convert them to another format and hinted for streaming. I
know this can be done with Applescript and Quicktime 6 Pro. Can anyone
point me to an already created script or something that I can tailor to
my own? I need to dump a directory (which will include movies and
subdirectories).
Before doing the whole batch, I manually do one of the movies at the
settings I want to use for the batch. The script uses "most recent
settings" and this let's me see they are the ones I want to use and are
set before running the script that processes the whole batch.
I run this from a card script in HyperCard. Probably copy the tell
block to Script Editor, decomment the first two lines to choose the
source and destination folders:
set tempFolder to card button "Source"
set targetFolder to card button "Destination"
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.
Hope this helps
Yours truly
R Charles Flickinger
_______________________________________________
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.