• 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
Save self-contained with Quicktime Player 7
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Save self-contained with Quicktime Player 7


  • Subject: Save self-contained with Quicktime Player 7
  • From: Steve Thompson <email@hidden>
  • Date: Wed, 02 Jun 2010 16:00:20 -0700

Hi all,

Thanks so much for the help I got on my last issue. You guys are great.

Here's another one that I seem to be struggling with but don't think I should be...(mental block or something).

I know that the dictionary for Quicktime Player 7 allows for "save self contained" and save has the property "replacing" but somehow I can't seem to save self contained replacing the original file. A simple "save" gets me a reference movie, not a self contained movie and I can't "save self contained...replacing yes" Compile fails.

The closest I get is this: 

on run


tell application "Finder"


choose folder with prompt "Folder containing source movie files:"
set the movie_folder to POSIX path of result
set the movie_list to list folder movie_folder without invisibles


choose folder with prompt "Folder containing source audio files:"
set the audio_folder to POSIX path of result
set the audio_list to list folder audio_folder without invisibles


display dialog movie_list as text
display dialog audio_list as text
--Begin main processing loop


display dialog movie_folder
display dialog audio_folder


end tell


repeat with i from 1 to number of items in the movie_list

set the audio_file to POSIX path of (audio_folder) & item i in the audio_list
set the movie_file to POSIX path of (movie_folder) & item i in the movie_list


tell application "QuickTime Player 7"


repeat while window 1 exists
close window 1
end repeat


open the audio_file


tell document 1
rewind
select all
copy
select none
close
end tell


open the movie_file


tell document 1
delete track "Sound Track"
add
end tell


save self contained document 1 in file movie_file


close


end tell


end repeat


display dialog "Finished!"


end run

which gets me:

save self contained document 1 in file "/Users/sthompson/Desktop/video files/EVO_1001_0004.mov"
--> error "An I/O error occurred." number -36

Result:

error "QuickTime Player 7 got an error: An I/O error occurred." number -36
Any thoughts?

Steve


Steve Thompson
email@hidden





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Save self-contained with Quicktime Player 7
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Function keys
  • Next by Date: Automator 2.1 BUG???
  • Previous by thread: Re: Function keys
  • Next by thread: Re: Save self-contained with Quicktime Player 7
  • Index(es):
    • Date
    • Thread