• 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: importing new video track with Quicktime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: importing new video track with Quicktime


  • Subject: Re: importing new video track with Quicktime
  • From: "Karl Kennedy" <email@hidden>
  • Date: Wed, 12 Nov 2003 13:02:10 +0000

Thanks for the reply.Yeah,i noticed that to about the static image import working fine.
Tried to run your script,but it throwns up a QT error after it copies the chosen movie.Here's the log report:

tell current application
choose file
end tell
tell application "QuickTime Player"
get movie 1
get movie 1
open alias "mscmt2003:cc10:QTSampleCode:ImageCompositing_latest:jumps.mov"
select all movie "jumps.mov"
copy movie "jumps.mov"
--> QuickTime Player got an error: An error of type -9995 has occurred.

I'm now looking into arranging the movies via Smil and exporting them as a QT movie.There is some code (applscript smil sequencer),that looks like a good a start as any...
Cheers


From: Brennan <email@hidden>
To: email@hidden
Subject: Re: importing new video track with Quicktime
Date: Wed, 12 Nov 2003 12:50:07 +0100

"Karl Kennedy" <email@hidden> wrote:

> > Hi, Im trying to write a script that imports a video file
> > as a new track in a movie.I'm basing it around the
> > applescript sample code that imports an image as a new
> > track. here is the line in question
> >
> > set the new_track to make new track at beginning with data
> > imagefile
> >
> > The imagefile variable is selected from the file chooser,it
> > is a .mov movie. The result of this line is that the script
> > bombs out! Any help is much appreciated.

Interesting. This crashes QuickTime Player for me too, although it works
perfectly with still images. I think I will file a bug report.

(OS X 10.2.8, QT 6.3)

For now, you might consider opening the movie, copying it, and then adding
it to your other movie.

set f to choose file

tell application "QuickTime Player"

set targetMovie to movie 1

set m to (open f)
tell m
select all
copy
close saving no
end tell

tell targetMovie
add with scaled
end tell

end tell

Presumably you were using 'add at beginning' for a good reason, but if
it's layering you are thinking about, consider that tracks have a layer
property which may be manipulated.

Good luck. (Would be interested to hear how you get on).

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

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
_______________________________________________
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.
  • Prev by Date: Latest Language Guide for AppleScript OSX?
  • Next by Date: Re: Latest Language Guide for AppleScript OSX?
  • Previous by thread: Re: importing new video track with Quicktime
  • Next by thread: Applescripts for Acrobat 6.0
  • Index(es):
    • Date
    • Thread