• 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: Whit Anderson <email@hidden>
  • Date: Tue, 11 Nov 2003 22:48:42 -0600

Karl--

Here is one approach to the script you are writing.

-- beware of line wrapping from e-mail
tell application "QuickTime Player"
launch
-- -- open movie that will be new track
open file (pathToTrackMovie as text) -- get the path however you want
rewind movie 1
select all movie 1
copy movie 1
close movie 1 saving no
-- -- open the movie that gets the new track
open file (pathToGetsNewTrackMovie as text) -- get the path however you want
rewind movie 1
select all movie 1
add movie 1 with scaled
rewind movie 1
select movie 1 at 0 to 0
close movie 1 saving yes
end tell


You may not want to "select all" and "add movie 1 with scaled" for the second movie. You may just want to "rewind movie 1" and "add movie 1" depending on what you want for the new track.

I think that the resulting movie will not be self contained. If I remember right, you can't save a movie over itself as self contained. I found the following line in a script where I save the movie with the new track in a temporary file, close the original movie, delete the original movie, and then replace it with the movie saved in the temporary file.


save movie 1 in file pTempMoviePath as self contained


Maybe your sample script to import an image as a new track had some better way to deal with this.

--Whit



Message: 8
From: "Karl Kennedy" <email@hidden>
To: email@hidden
Subject: importing new video track with Quicktime
Date: Tue, 11 Nov 2003 12:08:54 +0000

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.
_______________________________________________
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: Weird dialog box...
  • Next by Date: Re: Script tell the wrong app ! (Thomas C.)
  • Previous by thread: importing new video track with Quicktime
  • Next by thread: Re: importing new video track with Quicktime
  • Index(es):
    • Date
    • Thread