• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: QuickTime - Save Export Settings - script help needed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QuickTime - Save Export Settings - script help needed


  • Subject: Re: QuickTime - Save Export Settings - script help needed
  • From: Brennan <email@hidden>
  • Date: Thu, 27 Oct 2005 00:29:24 +0200

> 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....

Shouldn't you be using a full path to "set1test"? That might be your
problem. Experiment with different file classes. It might even be
expecting a posix path, but I doubt it. A full HFS path prefixed with
'file' should work.

Funny that it doesn't cause an error with a meaningless parameter though.
That's a bug.

> -  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.

Ok, here's how it is: The QuickTime Export Settings mechanism is a hack
dreamed up by the QuickTime Engineers to make it possible to do this at
all. They know full well it is a sub-optimal solution, but not having any
mechanism at all would be even worse.

'qtes' files have no icon. The correct behavior when double-clicking on
them is undefined.

When the feature was introduced, I played with it a bit, found that it
worked, since then I haven't tried it, but boy... it's ugly.

Here's a snippet of code I had lying around (needs to be targeted to QT
player):

tell app "QuickTime Player"

	set expType to QuickTime Movie

	set prmpt to "Please locate a settings file..."
	set qtes to (choose file of type {"qtes"} with prompt prmpt)
	set prmpt to "Export as..."
	set expF to (choose file name with prompt prmpt)
	export movie 1 to expF as expType using settings qtes with replacing

end tell

Let me know if this works for you. Be sure to test that it is really using
the qtes file by doing a manual export first with some different settings,
then run the script to see if it used the qtes file.

Yes it's all very ugly and complicated, but it can be made to work.

So.. if you can at all fall back on 'export using most recent settings',
do so. i.e. perform one export manually, with the settings you want, and
then use 'most recent settings' and it will do the right thing.

The only reason to use quicktime export settings files, AFAICT is when you
want to do more than one export with different settings, like if you want
to export a batch of movies at two different sizes.

If you're not doing that, use 'most recent settings' instead, and keep
your hair.
--
Brennan Young

"Supposing we were discussing the art of weaving which might be developed. Supposing people were at the stage where they could ony tie knots in string, which gave them pleasure and might be regarded as a foretaste of weaving. If the people only imitated the knotting phase, and in addition regarded knotting as the entire art - when would weaving itself come into being, no much how much pleasure there was attached to it? Certainly, knotting would have a value as such: but it would also constitute a barrier to going further if the idea of anything further were 'abolished' by people thinking that knots were as far as anyone could go in textile work."

-Idries Shah
 _______________________________________________
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

  • Follow-Ups:
    • Re: QuickTime - Save Export Settings - script help needed
      • From: revDAVE <email@hidden>
References: 
 >Re: QuickTime - Save Export Settings - script help needed (From: revDAVE <email@hidden>)

  • Prev by Date: Re: Producing Unicode-only characters
  • Next by Date: Re: Scripting QT 7 Player - Export to iPod?
  • Previous by thread: Re: QuickTime - Save Export Settings - script help needed
  • Next by thread: Re: QuickTime - Save Export Settings - script help needed
  • Index(es):
    • Date
    • Thread