AppleScript help please: Final Cut Pro / selecting drop down items

Hi,
I am wondering if anyone can help guide me wih a spot of AppleScript?
I'm new to it as of tonight (last time I made a script was 11 years ago, and that was a very basic one!).
Basically, my problem is I have a long term bug in Final Cut Pro which causes it to crash on launch everytime, unless I delete the Preferences file first.
(btw This problem exsisted in Snow Leopard and has continued with Lion. I think it is plug-in related, but I've never figured out which or why, and have had a topic ongoing on here int he FCP forum for some time with no luck).
Anyway, so far I have made a script which trashed the preferences and launches the program, like this:
try
          do shell script "rm /Users/redhavoc/Library/Preferences/Final\\ Cut\\ Pro\\ User\\ Data/Final\\ Cut\\ Pro\\ 7.0\\ Prefs.fcset "
end try
delay 1
tell application "Final Cut Pro" to activate
So far, so good.
However, what I would REALLY like to do, is continue this script to reset all the preferences automatically!
When launching FCP (as the preferences are gone) this is the first thing that comes up:
So, my question is:
How can I choose which items I want selected from the drop down boxes with my AppleScript?
(Specifically, option 7 in the "Format" drop down, and option 3 in the "Rate" drop down, then more complexly, choosing which folder I want in the "Primary Scratch Disk" drop down (which opens an "Open" dialogue) ).
Thanks in advance!

Ok, so I've worked out what the drop down boxes are called by digging through the package plist and strings files.
So now I have:
try
          do shell script "rm /Users/redhavoc/Library/Preferences/Final\\ Cut\\ Pro\\ User\\ Data/Final\\ Cut\\ Pro\\ 7.0\\ Prefs.fcset "
end try
delay 1
tell application "Final Cut Pro" to activate
tell application "System Events"
          tell process "Final Cut Pro"
  activate
                    tell combo box "formats" of window "firstStart"
  click button 1
                              repeat 6 times
  keystroke (ASCII character 31)
                              end repeat
  keystroke return
                    end tell
          end tell
end tell
But the error now returned is:
System Events got an error: Can’t get window "firstStart" of process "Final Cut Pro".
So I changed that line to:
tell combo box "formats" of front window
But now the error says:
System Events got an error: Can’t get window 1 of process "Final Cut Pro". Invalid index.
Hmmmm.... am I getting any closer??

Similar Messages

  • Help! Final Cut Pro unexpectedly quits during export.

    This couldn't have happened at a worse time. I'm desperate to make a deadline and every time I try export using final cut pro OR compressor the program will unexpectedly quit in the middle of it. It usually happens within 10 minutes of a 40 minute export. I'm just doing a standard quicktime export of an 80 minute long movie. It was working fine only a few days ago. Anyone have any ideas what this might be? We've tried all the normal things, restarting, using final cut rescue, etc.
    Not sure what else to say. We are in a huge time crunch and we can't even get it off of the computer and on to another one.
    If you need any more info please ask.

    Hey thanks for your help! Yes I have tried exporting a self contained movie but everytime it just quits on me. I've tried about 15 times so far. if it is a corrupt render file is there something I can do about that? Ive been trying to render it to the full render in final cut as well before an export but after about 5 minutes final cut quits. So now it quits when I render AND when I export. So ive been going through and rendering 3 minutes at a time, maybe that will help. I dunno.
    thank you again,
    Adam

  • Final cut pro 4 dropping frames

    I have recently updated my software, now I can not capture without having a dropped frame thing pop up.

    Hi,
    Try this below, which worked for me:
    1. From the Apple menu, choose System Preferences.
    2. From the View menu, choose Spotlight.
    3. Click the Privacy tab to reveal the areas that Spotlight will not index.
    4. In the Finder, open your "Final Cut Pro Documents" Folder.
    5. Look for the Capture Scratch folder and drag it onto the Privacy portion of Spotlight.
    To test this, start a new "test" project in FCP and log and capture a number of clips and see if the dropped frame problem pops up. Put the clips on the Timeline, do some effects like dissolves, etc.
    If you still have an issue, open up FCP, choose User Preferences, select the General Tab and uncheck (that is, remove the checkmarks from the following: Sync audio ..., Report dropped ..., Abort ETT ...,
    Abort capture .... Also, "on time code break," select make a clip.
    Report back.
    Richard

  • Help! Final Cut Pro wont Open, I tried to un install and re install but it still didnt work!

    I have a Final Cut Pro Express from 2006 and all was working fine untill i got an external hard drive and moved most of my projects over there. i tried moving them back to no avail and tried uninstalling and reinstalling final cut and it didnt work! Anyone have any advice on what I can do???

    I disagree an uninstall-install is going to do anything for you. "Won't work" and "to no avail" don't help us speculate on what's wrong with your system. Moving projects should not have caused any issues at all so what you probably really mean is that you moved your media or maybe moved your ssytem or the apps folder or you tried to move FCP. All really bad ideas.
    andreafromgreenbrae wrote:
    I have a Final Cut Pro Express from 2006 and all was working fine untill i got an external hard drive and moved most of my projects over there. i tried moving them back to no avail and tried uninstalling and reinstalling final cut and it didnt work! Anyone have any advice on what I can do???
    bogiesan

  • Help for Final Cut Pro X training book.

    Hello everyone!
    I've recently decided to study to get the Apple Certification for Final Cut Pro X level 1, so I bought the book "Apple Pro Training Series: Final Cut Pro X" by Diana Weynand. Due to a mistake of mine, I bought the edition released on October 2011, knowing later that there is a 2012 version and a new one coming out in just a month.
    I'd like to know if I can still handle the exam studying this book released on 2011, or if I necessarily need to get the latest version coming out sooon.
    Thanks in advance for your help!
    - Alex

    I understand. I don't feel like waiting so much time, so I need to choose.
    1 - Start studying my old 2011 book since I have it here, and see if I can make it before the exam is updated (I have no idea how much time it'll take me to study the entire book though, even if I study everyday).
    2 - Buy the Motion 5 book and get that certification while waiting for the new FCPX book to come out.
    3 - Just waiting for the new FCPX book (which means wasting time waiting).
    Thanks for your answers and patience.

  • In desperate need of help! Final Cut Pro suddenly distorts audio!??

    Hi
    I have filmed much with my 7d using a juicedlink mixer and imported it into final cut pro.
    Suddenly when I am editing the sound gets distorted and really high even though the sound waves look fine. It happens mostly in transitions on all my timelines. Here is a video clip of the phenomenon: http://enelesfilm.se/ovrigt/audiofail-desktop.m4v
    Look at the audio meters Why is it like this and how do I fix it?!
    Thank you so much for any help!

    If you open these files with Quicktime and hit command+I QT inspector will show the info you need, however, glitches like the one you are having can often be caused either by unusual/unsuitable clip settings or corrupted preferences.
    If audio is indeed AIFF 48kHz 16 bit and a re-start of the programme does not fix the issue you may want to try [trashing the preferences|http://www.digitalrebellion.com/pref_man.htm].

  • HT203477 Help! Final Cut Pro X

    Final Cut Pro X seems to have deleted some essential clips from my project. I've run two recovery programs but they found nothing. My question is, where do the files go? I'm pretty sure I didn't accidentally erase them.

    if you have background rendering on but move the cursor or anything else in FCPx, it wont render...
    FCPx's background render SHOULD be called Auto_FrontRow_Render... Because it CANT render in the background. Only if you dont touch the app...
    If you cut and paste into a new project, FCPx will have to render the timeline AGAIN... IF you hit DUplicate project and THEN choose the option "Include Render Files" FCPx does NOT have to re-render it all....
    There are more specific clues in the manual

  • Final Cut Pro 7 shuts down after installing OSX 10.8

    Recently upgraded to OSX 10.8. Initially Final Cut Pro 7 was working but then suddenly crashed. All it does is runs through scripts like its opening but then shuts down.
    I thought it was a problem with disc space so I cleared my hard drive. This did not help.
    I tried to troubleshoot but could not find the things the troubleshooter mentioned: ~/Library/Preferences; com.apple.finalcutpro.plist; Final Cut Pro User Data; /Library/Receipts; FinalCutPro.pkg.
    Tried uninstall/reinstall but I still have same problem. Any ideas/suggestions? Thanks!

    Thanks... I just figured out how to do the repair disk, but unfortunately not solve my problem. So my next step is doing a clean install of my OS. I'm currently using Time Machine to backup my computer just in case I run into any issues. So I've never done this before and I'm not very computer savvy AT ALL. lol
    So I want to make sure I understand things correctly before actually doing it. Essentially I will go to Disk Utility and erase the drive? I'm guessing then restart the computer? Will I be able to open up the App store to get my OSX10.8 reinstalled?
    Thanks

  • Final Cut pro 7 Bogging down

    I was hoping that some one could help with my Final Cut Pro 7 question.
    I have the an 8 Core 6 gigs of ram. 8TB 7200rpm. Editing all in HD with XDCam footage.
    I am strarting to get bogged down when I am edtting my videos. Does any body know how to clean up the system so I am running more efficient in final cut pro? My main video files are on one drive and the preview files are set to another drive.
    Can you help?
    Steve

    Hi
    And this is FinalCut Express forum !
    But I guess that Your Main / Start-Up / Boot / Mac OS Hard disk is filling up ?
    You need more than 25GB free space on this ONE and may be 4-5 times more if You are working with HD-Material.
    Even though You use two more external hard disks for "Main video" and "Preview files" the space need to be on Start-Up Hard Disk for Mac OS and application .temp files - as they can not be addressed elsewhere !
    Yours Guessing - Bengt W (I use both FCE (4.0.x) and FCP (6.0.6))

  • Help! Final cut pro 7 crashing on startup..Tried everything!

    When I startup Final cut the startup screen appears... then crashes before the programme opens.
    I have done disc repairs, deleted preferences files, done updates, and tried uninstalling and reinstalling many times.
    Im guessing that it is something to do with my Mac not the software. Really stuck and can't find anything online thats helped.
    Any help or advice will be great appriceiated.

    The message means your machine is looking for an external device that is not connected to the computer. If you are getting that message, it means you have not properly deleted your FCP preference files.
    Download and run Digital Rebellion's Preference Manager. It's free and located on the DR website. It will get rid of all the FCP prefs properly.
    If this works, after FCP launches, go into the FCP system settings and reset the locations of where FCP puts capture files, scratch files, etc. to a directory on a hard drive OTHER than your system disk.
    Good luck,
    x

  • Final Cut Pro 3 Shuts down

    I am forced to use an old version of Final cut on my new Mac Mini, but everytime I use a shortcut key, Final Cut closes. I have tried dissabling shortcuts in system preferences, but that did not help. Any suggestions?

    Welcome to the discussions, Spider.
    You need to provide more information - What shortcut key? What happens?
    Patrick

  • Can anyone please help? Final cut Pro problem

    Hi I am trying to up load video to Youtube and keep getting the following message: 
    The operation couldn’t be completed. (com.apple.Compressor.CompressorKit.ErrorDomain error -1.)  
    I am no Einstein when it comes to computers. Can anyone please help? Thank you Yarders1

    Can you render your project to a local folder on your computer?  If you cannot, try this:
    File > Delete Project Render Files
    Turn off FCP, start it up again.
    Try to render again.  Works almost every time for me.

  • HT4714 Final cut pro X drop frames?

    Hi,
       I am getting frequent drop frame messages during play back, when I swich to proxy media several of my clips are getting the red clip with exclamation mark? I havent done the current update yet , I am currently using a trail version... 10.03. I have a new 1mac 27 with plenty of power. I am frustrated that I am getting these error messages.
      thanks for any input
       chevas

    Dropped frames can be caused your media needs to be rendered for playback and the system isn't fast enough, or the drive isn't fast enough to support your media.
    When you switch to proxy playback you can only playback proxy media. If the media hasn't been trasncoded to proxy format it won't play back and will appear as offline.

  • I need help with Final Cut Pro 4.5

    I'm trying to time myself do something for a school project and I was wondering if FCP's got like a timer effect or something where I can type in the time I want it to end and put it on my video

    no built-in counter overlay per se. but you could use the Effects > Video Filters > Video > Timecode Generator
    (and crop of the info you don't want to see)
    ... or you can look at the DH_Counter plug-in from digital heaven
    http://www.digital-heaven.co.uk/fcplugins/dh_counter.php

  • Final Cut Pro Randomly Shuts Down

    Today as I am working in FCP 6.0.5, it is constantly shutting down when I try to work in sequences. Any suggestions on what to check? This really annoying and of course I have a project to complete today!

    #44: FCP acting weird - Trash Prefs
    Shane's Stock Answer #44: FCP acting weird or unusual. Just not like is normally should
    If the program was working fine, and now isn't, or just isn't working the way it should, the first things to do are:
    1) Trash your FCP preferences. Download the appropriate version of FCP Rescue at http://www.fcprescue.com and run it.
    http://www.kenstone.net/fcphomepage/trashing_fcpprefs.html
    2) Open the Disk Utility and Repair Permissions.
    3) Shut down for 10 min. Go for a quick walk around the block and get SOME exercise today. Come back, turn on the computer and see how things are.
    4) (optional) Do the Hokey Pokey and turn your self about. Results may vary.
    Shane

Maybe you are looking for