Skip to content

Instantly share code, notes, and snippets.

@atomicules
Created March 24, 2011 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atomicules/884926 to your computer and use it in GitHub Desktop.
Save atomicules/884926 to your computer and use it in GitHub Desktop.
iMovie DV Stream to Final Cut Express Media Convertor. Note that this information is probably out of date. It is being added here for reference/archival purposes and relates to a blog post from 2005
-- DESCRIPTION
-- ===========
-- This script converts iMovie capture files in the DV Stream format to FCE compatible ones. To do this it converts the audio only (since that is the problem).
-- HOW TO USE
-- ==========
-- Open required iMovie capture in Quicktime. Run this script! No other movies can be open. Will only convert one at a time. For batch conversion see the droplet in this folder
-- INSTALLATION
-- ============
--This script/application must be left in it's containing folder (iMovie2FCE) since it references the export setting file (iMovie2FCEaiffsettings) at this location. Place the whole folder in your ~/Library/Scripts folder. It will not run from anywhere else. You can however make an alias to it or place the app in you dock and it will run fine
-- QUICKTIME PRO REQUIRED
-- HISTORY
-- =======
-- v0.9 30-Dec-2005 Works ok, but requires error handling, etc.
-- TO DO
-- =====
-- Needs error checking, etc.
-- CONTACT
-- =======
-- email: i5m.eats.apples@i5m.me.uk
-- web: www.i5m.me.uk
tell application "QuickTime Player"
activate
try
set the movie_name to the name of document 1
tell document 1
set the target to (the original file) as text
end tell
set audio_file to ((target) & ".aif")
export document 1 to audio_file as AIFF using settings ((path to home folder as string) & "Library:Scripts:i5m_iMovie2FCE:iMovie2FCEaiffsettings")
open audio_file
delete (track 2 of document 2)
tell document 1
select all
copy
end tell
tell document 2
select all
add with scaled
end tell
save self contained document 2 in ((target) & ".mov")
close document 1
close document 1
end try
end tell
tell application "Finder"
try
move alias audio_file to trash
end try
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment