Applescript for quicktime player 7 in 10.6

I've been using an applescript that can take a bunch of movie clips and merge them into a single file. (see script below) now with 10.6 and quicktime x. this script no longer works. Can anyone help me to get quicktime player 7 to launch and start doing it's trick. any help most appreciated.
on open these_items
          tell application "Finder" to set sorted_items ¬
                    to sort these_items by name
          repeat with i from 1 to the count of sorted_items
                    set this_item to (item i of sorted_items)
                    tell application "QuickTime Player 7"
                              if i is equal to 1 then
  make new document
                              end if
  open this_item
                              tell document 1
  rewind
  select all
                                        copy
  select none
                              end tell
  close document 1 saving no
                              tell document 1
                                        add
  select none
                              end tell
                    end tell
          end repeat
end open

The scripts below work for me, using Mac OS 10.4.11 and QuickTime Pro v. 7.6.4.
Note that my version of AppleScript (v. 2.1.1) doesn't recognize application QuickTime Player 7. Hence, application "QuickTime Player" was used throughout. Your needs may vary; if you can or must use the "7" by all means do so.
The first is based on the script Craig Williams posted in this thread: http://macscripter.net/viewtopic.php?id=31674 (in post #6). I modified the script a bit so that a new file is created on the front end, and the merged file gets written to it once the script finishes:
set file_name to text returned of (display dialog "A new merged QuickTime file will be created on the desktop. Please choose a name:" default answer "Enter Name")
tell application "Finder"
  try
  set make_file to make new file at (path to desktop folder as string) with properties {name:file_name & ".mov"}
  set new_file to make_file as alias
  on error
                    display dialog "A file with the name " & "“" & file_name & "”" & " already exists on the desktop. Please try again." buttons {"OK"} default button 1 cancel button 1 with icon stop
  end try
end tell
set theCount to 1
set theFolder to choose folder with prompt "Choose the folder with QuickTime files you want to join together."
tell application "Finder"
  set theFiles to every file of folder theFolder
  set totalFiles to (count the theFiles)
  repeat with i from 1 to totalFiles --to 1 by -1
  set thisfile to item i of theFiles as alias
                    --QT Pro
  my mergeFilesUsingQT(thisfile, theCount, totalFiles)
  set theCount to theCount + 1
  end repeat
end tell
delay 1
tell application "QuickTime Player"
  tell document 1
  rewind
                    delay 0.5
  save as self contained in new_file
  close
  end tell
end tell
on mergeFilesUsingQT(thisfile, theCount, totalFiles)
          tell application "QuickTime Player"
  activate
                    --the first file only gets copied
                    if theCount = 1 then
  open thisfile
                              delay 0.5
  tell document 1
  select all
                                        copy
  end tell
  close document 1 saving no
  else
                              --these files get the previous file added to it and
                              --then it is copied to be added to the next file
  open thisfile
                              delay 1
  tell document 1
  set x to get duration
  set current time to x
  paste
  select all
                                        copy
  end tell
  end if
  end tell
end mergeFilesUsingQT
My own version, below, creates a new file and then opens a temporary QuickTime document to which each file is copied in turn. Once copying is complete, the temporary file is written to the file that was created at the beginning of the script:
set file_name to text returned of (display dialog "A new merged QuickTime file will be created on the desktop. Please choose a name:" default answer "Enter Name")
tell application "Finder"
  try
  set make_file to make new file at (path to desktop folder as string) with properties {name:file_name & ".mov"}
  set new_file to make_file as alias
  on error
                    display dialog "A file with the name " & "“" & file_name & "”" & " already exists on the desktop. Please try again." buttons {"OK"} default button 1 cancel button 1 with icon stop
  end try
end tell
tell application "QuickTime Player"
  set temp_doc to make new document
end tell
set fol to choose folder with prompt "Choose the folder containing QuickTime files to be merged:"
tell application "Finder"
  set the_files to every file of folder fol
  repeat with i from 1 to count of the_files
  set a_file to item i of the_files
  my merge_files(a_file, temp_doc)
  end repeat
end tell
delay 1
tell application "QuickTime Player"
  tell document 1
  select none
  save as self contained in new_file
  close
  end tell
end tell
on merge_files(a_file, temp_doc)
          tell application "QuickTime Player"
  activate
  make new document
  open a_file
  delay 1
  tell document 1
  set t to get duration
  set current time to t
  select all
  copy
  close
  end tell
  activate document temp_doc
  delay 1
  tell document 1
  paste
  end tell
  end tell
end merge_files
Hope this helps. Good luck.

Similar Messages

  • Scripts for Quicktime Player ???

    Whatever happened to the Apple Scripts for Quicktime player that worked with Quicktime Pro so that you could merge two movies, cut out segments, etc. The old set I have worked with Quicktime 6.5.5 but are dead now.
    TIA.

    Ironic, isn't it.
    Today is QuickTime version 7's fifth birthday. 5 years without any additional Apple involvement in the AppleScripts that worked so well in version 6.
    The move from version 6 to 7 also lost support of other features found in version 6. No more .swf files. No editing MIDI instruments. No more "free" rotation of video tracks. No more "transparency" for colors (no more color wheel, either). No "sprites" editor.
    Features found in QuickTime 3 and 4 are also gone in later versions. Simple things like cross fades and transitions require 12 year old PPC apps that are hard to find.
    Those of us that answer questions here do not work for Apple. We are just users like you.
    It seems like Apple is moving toward Automator "actions" and away from AppleScript. But the dictionary for QuickTime Player is pretty slim.

  • Is there any codec for QuickTime Player ?

    Is there any codec for QuickTime Player ?

    Do you mean are there other codecs you can install and play in QT, yes there is, just this and it will take care of them all just about.
    http://perian.org/
    If you don't have Flash, install it here
    http://get.adobe.com/flashplayer/
    Others are Silverlight (free) and Flip4Mac (payware) for protected Windows media files.
    You can also install the free VLC player, it plays a lot too.
    DivX, I don't know about, VLC likely can play that.
    There is also RealPlayer, but I think that's dropped off the face of the planet

  • Applescript for QuickTime help needed.

    I have some mkv files that I would like to re-encapsulate as mov files.
    Through the GUI I would normally open the mkv in quicktime, then Save or Save As with self-contained option selected, and just hit enter. This would save the re-encapsulate the movie with no re-encoding to the same directory with the same filename, but now with the .mov extension. This works with no issues.
    Now, I want to be able to automate this process, but the only thing I can't figure out is how to tell the movie to *save self contained* with the *+same name in the same directory+*.
    Thanks in advance for any help you can offer!

    I don't know what the rest of your script is, but the following snippet will save the front document - no error checking (such as existing files or loaded state of the document) is done:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the AppleScript Editor">
    tell application "QuickTime Player 7" to tell document 1
    set thePath to it's path & ".mov" -- just add a new extension to the existing file path
    save self contained it in thePath
    -- close
    end tell
    </pre>

  • What is the most recent upgrade for Quicktime player for Mac OX 10.7.5

    I have iOS 10.7.5 on my iMac.  Recently my quicktime player won't play a slideshow created in Quicktime.
    Can I upgrade my quicktime player application? If so, how?
    Thank you.  Mrs. D

    It is installed along with OS X. The current version is 10.3 and is part of Yosemite.
    Upgrading to Yosemite
    You can upgrade to Yosemite from Lion or directly from Snow Leopard. Yosemite can be downloaded from the Mac App Store for FREE.
    Upgrading to Yosemite
    To upgrade to Yosemite you must have Snow Leopard 10.6.8 or Lion installed. Download Yosemite from the App Store. Sign in using your Apple ID. Yosemite is free. The file is quite large, over 5 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
        OS X Mavericks/Yosemite- System Requirements
          Macs that can be upgraded to OS X Yosemite
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.

  • Updates to codecs for Quicktime Player

    I want to update codecs used by QuickTime player 7. Do I just use the update feature in the program, or do i need to manually update the codecs online somewhere?

    QuickTime includes the most commonly used codecs with each install. When you encounter a file that you don't have the proper codec to view you may be directed to the third party component page offered by Apple.
    But it doesn't tell you which to install because it doesn't actually "read" the file. It only knows that something is missing.
    Best practice would be to use the MOvie Info window on files that give you trouble. You'll be able to view the codecs used in it and need only do a Google search to find what you need.

  • AppleScript for QuickTime export of frames

    I would like to get an AppleScript to --
    1) Take a folder full of QT movies (slideshows), and for each movie create a new folder with the name of the orig movie (e.g. "nelson.mov" --> "nelson" foldername), and for each movie --
    2) export a series of frames from each 30 - 200 second QuickTime narrated slideshow movie (typically 4-8 frames per movie), with each frame saved with name nnnnnn.jpg, where "nnnnn" is the TIME for that frame in the movie, into the folder for that movie
    3) export the audio track as a .aif audio file into the folder for that movie
    Although I have done some AppleScripting, the above is Way Beyond my expertise...
    Can anyone help me ?
    Thanks

    You don't ask for much, do your Donald?
    http://www.apple.com/applescript/quicktime/
    Most of these AppleScripts still work with QT 7 and Tiger. Some are "broken" but fixable.
    You may also want to look toward Automator (part of Tiger) that can help you write (no real writing) Workflows and Contextual menu apps that you can invoke with a few mouse clicks.

  • AppleScript for QuickTime: How to select microphone?

    (I'm new to AppleScript.)
    Using AppleScript, I want to change the selected microphone from "Built-in Microphone: Internal microphone" to another input I have called "Soundflower (2ch)".
    I looked at QuickTime in the AppleScript dictionary, but all I could find was "audio recording device", and I have no idea what to do with that.
    Help? / Write it for me please? =D

    The only normal user (non-admin type) who can mark an answer as helpful or correct is the user who started the discussion.

  • QuickTime Player 10.1 no more includes the ability to save a movie file in the same format as the original movie after editing it? No, it doesn't!

    Since upgraded to Lion, I have to wait for QuickTime Player 10.1 to "CONVERT" every file that I edited in it.
    Yes, it might save some disk space for me.(Which is not always the case though.) But it also takes almost 10 times or more as it did when back on Snow Leopard with QuickTime Player 10.0 there I could save any file in the same format as the original movie WITH NO NEED TO CONVERT IT.
    Now I have to wait like 10 minutes to delete just a few frames.(The time it takes depends upon the original size of that movie. The larger the longer.) And guess what? If you have two clips originally split up from a movie and sperately getting saved(converted actually) with a loooooooot of time, and you naively added one of them to the other's end and then saved the finished one. It converts AGAIN! Doing so back on Snow Leopard with QuickTime Player 10.0 only takes you even a few seconds only!
    Seriously, are we eating Apple or dirt this time?

    My existing movies are all the following types straight from FinalCut
    Apple Intermediate Codec, 1920 × 1080, Millions
    16-bit Integer (Little Endian), Stereo, 48.000 kHz
    This particular movie is 6.66 Gb
    The new Quicktime player in OS Mavericks converts these to the following format:
    Apple ProRes 422, 1920 x 1080
    Linear PCM, 16 bit little-endian signed integer, 2 channels, 48000 Hz
    And a movie size of 6.48 Gb
    It seems obvious from other forum posts this is a planned move so that everything is the "new mobile device" ready state/format. To use Marc Speth's post as material....
    https://discussions.apple.com/message/23749558#23749558
    this is probably about dumbing down desk top OS to that pf iPhones and iPads. This is not what I paid good money to own a Mac Book Pro for....
    Today I rolled all the back to Snow Leopard. Really good move...... All those new features hey? I lost the ability to work in spaces and of course the whole Quicktime debacle.
    The rolling back process was easy, restored from a point prior to installing Lion and Mavericks and the only issue was my iPhoto libraries. Thank my stars that I still had back ups that I had not converted yet.... viva la Mavericks...NOT. Apple can keep it.
    Unsure if you are just venting or if there is supposed to be a question here. Basically, I assumed this to be Apple's idea of an improvement. That is, I really believe the ProRes 422 codec is a better intermediate codec than the AIC codec but most of my old HDV camcorder family tapes were imported by iMovie (for compatibility with my wife's non-FCP computer configuration) and, like your content, is/remains stored as AIC/PCM MOV files. At first I thought this might be a generalized change affecting all QT X based apps but when I went to check the latest iMovie v10.0 update, became confused when I noted that AIC source files were not automatically updated to ProRes 422 and continue to play natively in the iMovie source media viewer.
    I guess this is supposed to be a logical evoluption and we were supposed to have seen the "handwriting on the wall" dating back to when Apple's first released the free ProRess "player" ProRes 422 codec. Still, it would have been nice if Apple had given some warning during the last few years so users could plan and prepare for such a drastic change. For the moment, I am just thankful that AIC remains, at least temporarily, supported nativelyby the iMovie video editor under Mavericks. Thank goodness for small favors.

  • How do I stop Quicktime player from auto-launching after I've exported a movie from iMovie 10?

    How do I stop Quicktime player from auto-launching after I've exported a movie from iMovie 10?
    It's really annoying for Quicktime player to auto-lauch!

    It may not be that simple David. They're using a "server" and some of the Apache software may want to launch QuickTime at boot.
    This isn't really a QuickTime question. It's a sever question best answered in those Discussion pages.

  • Quicktime Player (10.0) broken after Mac OS 10.6.6. update

    Quicktime Player, version 10, no longer works after upgrade. App icon is no longer appearing properly, movies in iPhoto will not open.
    Apps were never moved.
    I have a Quicktime pro license.
    Will not allow 7.6.9 install because of Quicktime Player X is installed. Very confusuing as there is not download for Quicktime Player X to reinstall.
    I have had this happen to both my Mac Mini and my Mac Pro.

    Issue resolved with a download of the 10.6.6 Combined Update and install. One thing I just remembered that could be the issue. I have another partition on both macs that have 10.6.x server that I use for training.
    This could have been a factor.
    Now, when I open a movie file in iMovie, QuickTime Player opens. If I "View In Finder" it shows the app on the OS X Server partition. Not fully resolved if this is the case, but currently functional in the current config of these two Macs.

  • HT3775 How do I get QuickTime Player to read ogg audio files?

    How do I get QuickTime Player to read ogg audio files?

    For Quicktime player to play it, it needs to be converted
    to one of the formats listed here:
    http://support.apple.com/kb/HT3775
    Otherwise, you will need to use different player software.

  • Multiple plist files for Quicktime X

    Hello-
    I noticed that in my user preferences folder there are multiple (79) preference files for Quicktime player X. They all have the following format:
    com.apple.QuickTimePlayerX.plist.fHp953T
    The last seven characters are different for each file. Is this normal? Should I get rid of them? There is one file without the seven last characters.
    Any information would be great-
    Thanks

    HI,
    Leave those files right where they are. Yes that's normal.
    If you launch your QuickTime Player, from the Menu Bar click QuickTime/Preferences. All your preferences in that window are stored in the .plist files.
    If you have problems using your QuickTime software, then you can move the .plist files to the Trash. The next time you launch QuickTime your Mac OS X will generate a new .plist file for you.
    Carolyn

  • After 10.6.6 Update, Quicktime Player 10 broken

    Only one issue I have discovered so far that occurred on my Mac Mini (2009 2.26Ghz). Quicktime Player 10 no longer works. The icon visually for Quicktime Player 10 has become "generic" and the program begins launch, then stops with no error.
    Discovered this when trying to open a movie via iPhoto library.
    This also occurred on my MacPro 2.0Ghz at work. Quicktime Player 7 seems unaffected.

    Issue resolved with a download of the 10.6.6 Combined Update and install. One thing I just remembered that could be the issue. I have another partition on both macs that have 10.6.x server that I use for training.
    This could have been a factor.
    When I open a movie file in iMove, QuickTime Player opens. If I "View In Finder" it shows the app on the OS X Server partition.

  • Script for Quicktime Closed Caption

    Help please-
    Using the basic script I've found online to produce closed captions, I seem to have problems with timecode-for example, captions don't always appear or disappear on time(some do and some don't).
    Is there a trick to the script layout to improve caption performance?
    thanks!

    Do you want to be able to have them both recording at the same time?
    I have had a little look through quicktimes dictionary and there doesnt really seem to be much there in regards to changing the source of the sound for recordings.
    So i would suggest at looking to altering the preferrence file for quicktime player before you send it the activate command.
    What you are going to have to do is to get the InputID line from within the preference file. Use the little script below to get the information about the inputId. So open quicktime, set the input to one of the two you want. Close it run the script and save the information somewhere, so you can compare it later on. Then open quicktime again change the preference to the other input you want and run the script again. Then you can compare the preference files and see what is needed to be altered to get it to record from the different locations.
    set quickpref to (do shell script "/usr/bin/defaults read com.apple.quicktimeplayer CapturePreferenceDefaultMovieAudioDevice")
    The script should work but i have only tested it on my computer, if it fails either spotlight for com.apple.quicktimeplayer.plist or get it from users/library/preferences
    A little tricky i know but hopefully shoulnt be too hard once you have narrowed down the items that need to be changed.
    If you dont know how to alter your preference file with a script post the results and the items that change from what and to what and i will give it ago.

Maybe you are looking for

  • Pivot_table's percent_of_column not displayed correctly in graph

    I have a pivot table with one field of value X. I duplicated that column and set 'show data as' value as percent_of_column. It works great on the table, where I see percentages figures, but the y_axis of the related chart still show the origin values

  • Train-stop display-name property bug?

    Hi all, I'm using JDeveloper 11.1.1.4. When using train taskflow with fragments I noticed that when I enter Display name property on view (train stop) it doesn't appear as train stop title on page at all. When I enter Display name in property inspect

  • How to write read dataset statement in unicode

    Hi All, I am writing the program using open dataset concept . i am using follwing code.     PERFORM FILE_OPEN_INPUT USING P_P_IFIL.     READ DATASET P_P_IFIL INTO V_WA.     IF SY-SUBRC <> 0.       V_ABORT = C_X.       WRITE: / TEXT-108.       PERFORM

  • Error installing Oracle Portal -Enabler conf table

    I am trying to install Oracle portal. I am getting the fallowing error: the enabler conf table (WWWSEC_ENABLER_CONFG_INFO$)does not have any entries. thanks null

  • Updating Color Project with Edit Changes in FCP

    Hi, My apologies if this topic as been discussed already and thanks for any input. So I finished a project in Color recently and the director then changed the edit in FCP. Some of the clips were either pulled or trimmed. Can I avoid starting from scr