Re: QuickTime - Save Export Settings - script help needed
Re: QuickTime - Save Export Settings - script help needed
- Subject: Re: QuickTime - Save Export Settings - script help needed
- From: revDAVE <email@hidden>
- Date: Tue, 25 Oct 2005 07:19:28 -0700
- Thread-topic: QuickTime - Save Export Settings - script help needed
On 10/24/05 10:16 AM, "revDAVE" <email@hidden> wrote:
> Hello everybody. I am a very novice applescript person.
>
> Currently I am using Panther 10.3.9 - with QT PRO 7.02 - ( I do not want to
> upgrade to Tiger at this time unfortunately)...
>
> * MY GOAL: to be able to save export preferences in QuickTime pro.
>
> Since QuickTime does not seem to be able to save export presets... I
> downloaded the the script collection from
>
> - - - - -
> From: Scriptable Applications: Quicktime Player
> Location: http://www.apple.com/applescript/quicktime/
> - - - - -
>
> and created export settings and tried ....
>
> Save Export Settings.scpt
>
> ... but the file that got saved will not open in QT PRO - OSX and wants to
> open something from old os9....
>
> what do I do?
>
> ---------
>
> - as an example I would like to be able to save some of my particular
> export settings such as ...
>
>
> VIDEO
>
> Sorensen 3
> Size 320 x 240
> fps 29.9
> keyframe = 90
> data rate = 500 kbps
>
> AUDIO
>
> IMA 22.050 stereo
>
= = = (see scripts below)
*** here is my basic workflow ...
- load a QuickTime movie
- adjust the QuickTime movie export settings
- save a test copy ( validating the settings)
- run the "save export settings.scpt" with name "set1test"
Then
- open and run the "Export QuickTime movie.scpt" with the name " test
movie"
- run the new test movie - and when I check info - it does NOT reflect the
desired settings...
= = =
One issue is - this line...
export movie 1 to new_file as QuickTime movie using settings "set1test"
... It doesn't seem to care what the settings file name is - and if I
change that name to a nonexistent name - it still exports the movie without
an error.... Therefore it leads me to believe that it's not using it to
begin with....
- another issue is that the settings file "set1test" says it is the kind =
"QuickTime settings document" - however it has a blank icon in the Finder -
and there does not seem to be any way to open the file with QuickTime 7.02 -
and it can to open something classic mode when I double click on it.
= = = the Save settings script...
tell application "QuickTime Player"
activate
try
if not (exists movie 1) then error "No movies are open."
stop every movie
set the target_file to choose file name with prompt "name & location
for the QT settings file:"
save export settings movie 1 for QuickTime movie to target_file with
replacing
end try
end tell
=== the Export QuickTime movie.scpt
tell application "QuickTime Player"
activate
try
if not (exists movie 1) then error "No movies are open."
stop every movie
set the movie_name to "mytest.mov"
if (can export movie 1 as QuickTime movie) is true then
set the new_file to ¬
choose file name with prompt "Enter a name:" default name
movie_name
export movie 1 to new_file as QuickTime movie using settings
"set1test"
end if
end try
end tell
--
Thanks - RevDave
email@hidden
[db-lists]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden