Trying to work on a script for QuickTime X, need help

So, I've been working on scripts to restore some functionality back to QuickTime X (mainly the preferences part of QuickTime).
http://web.me.com/celebi23/QuickTimeXScripts/Main.html
http://discussions.apple.com/thread.jspa?threadID=2135161
I'm now trying to implement the "Recent Items" selection.
I almost have it all set up. It still won't make the selection though >_< The script won't open when I'm in QuickTime (via the script menu. all of the others open just fine. Have to run it from the AppleScript Editor to test it out). All of the individual Terminal commands work just fine though. Oh & there's an invalid connection with QuickTime apparently >_<
<a class="jive-link-external-small" href="http://">http://i23.photobucket.com/albums/b355/eisnerguy1/Recent_Items.p ng
"set recentItems to {"None", "5", "10", "15", "20", "30", "50"}
display dialog (choose from list recentItems with prompt "Select the amount of Recent Items.")
if recentItems is "None" then
do shell script "defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 0"
else if recentItems is "5" then
do shell script "defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 5"
else if recentItems is "10" then
do shell script "defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 10"
else if recentItems is "15" then
do shell script "defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 15"
else if recentItems is "20" then
do shell script "defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 20"
else if recentItems is "30" then
do shell script "defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 30"
else if recentItems is "50" then
do shell script "defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 50"
end if
display dialog "Please restart QuickTime Player for the preference changes to take effect." & return buttons {"Restart QuickTime Player"} default button 1 with icon alias ((path to me) & "Contents:Resources:QuickTimePlayerX_128.icns" as string)
copy the result as list to {restartButton}
if restartButton is "Restart QuickTime Player" then
tell application "QuickTime Player" to quit
tell application "QuickTime Player" to open
end if"
Still trying to figure out how to include the "Restore Defaults" button. The code would be something like this. It would go before the restart dialog. Not sure where in the code to include the "Restore Defaults" button though >_<
"defaults delete com.apple.QuickTimePlayerX NSRecentDocumentsLimit"
end if"
Any help would be greatly appreciated

Thank you. The script now loads but, the preference never stays set. I chose "5" & the recent items still continue to be added to the recent items list. I've got 10 items in my "recent items" list even though I chose "5". The Terminal commands themselves work fine though
set recentItems to {"None", "5", "10", "15", "20", "30", "50"}
display dialog (choose from list recentItems with prompt "Select the amount of Recent Items.")
if recentItems is "None" then
do shell script "defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 0"
else if recentItems is "5" then
do shell script "defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 5"
else if recentItems is "10" then
do shell script "defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 10"
else if recentItems is "15" then
do shell script "defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 15"
else if recentItems is "20" then
do shell script "defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 20"
else if recentItems is "30" then
do shell script "defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 30"
else if recentItems is "50" then
do shell script "defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 50"
end if
set buttonClicked to button returned of (display dialog "Please restart QuickTime Player for the preference changes to take effect." & return buttons {"Restart QuickTime Player"} default button 1 with icon alias ((path to me) & "Contents:Resources:QuickTimePlayerX_128.icns" as text))
if buttonClicked is "Restart QuickTime Player" then
tell application "QuickTime Player" to quit
delay 3 -- give the app time to quit, otherwise the next command may fail
tell application "QuickTime Player" to activate
end if
I took out the "Restore Defaults" because, according to the Terminal
There is no (NSRecentDocumentsLimit) default for the (com.apple.QuickTimePlayerX) domain.
Defaults have not been changed.
Message was edited by: Alex Brofsky
Message was edited by: Alex Brofsky
Message was edited by: Alex Brofsky

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.

  • Hello. I have an ipod touch 4th generation. I have been trying to work facetime and imessage for 3 days, i sign in with my user ID and it says signing in and verifying but then it goes back to the sign in page. Can anyone help?

    Hello. I have an ipod touch 4th generation. I have been trying to work facetime and imessage for 3 days, i sign in with my user ID and it says signing in and verifying but then it goes back to the sign in page. Can anyone help?

    I disabled all my computer's firewalls and sure enough, IT WORKED!! My iPod is updated and just now finishing restoring! Thank you SOOOO SOOO much. : D

  • Please help.   My Adobe InDesign document keeps crashing when I adjust the screen resolution to High in the View menu.  Desperately trying to get my magazines prepared for press today!  HELP!

    Please help.   My Adobe InDesign document keeps crashing when I adjust the screen resolution to High in the View menu.  Desperately trying to get my magazines prepared for press today!  HELP!
    My magazine last month is still working ok - but this month's version has just started crashing for some reason.

    We can't know. You have not provided any system info, not told us what version of ID you use nor provided any specifics about the document like images, color profiles, fonts, paragraph styles and what have you...
    Mylenium

  • How can I add a new Template to My Templates in Pages? I've read most of the discussions on the subject but it doesn't work for me. By the time I reach the Templates folder, I only see templates for Numbers and not for Pages. Need help, please.  Thanks

    How can I add a new Template to My Templates in Pages? I've read most of the discussions on the subject but it doesn't work for me. By the time I reach the Templates folder, I only see templates for Numbers and not for Pages. Need help, please.  Thanks

    Si vous avez utilisé la commande Save As Template depuis Pages, il y a forcément un dossier
    iWork > Pages
    contenant Templates > My Templates
    comme il y a un dossier
    iWork > Numbers
    contenant Templates > My Templates
    Depuis le Finder, tapez cmd + f
    puis configurez la recherche comme sur cette recopie d'écran.
    puis lancez la recherche.
    Ainsi, vous allez trouver vos modèles personnalisés dans leur dossier.
    Chez moi, il y en a une kyrielle en dehors des dossiers standards parce que je renomme wxcvb.template quasiment tous mes documents Pages et wxcvb.nmbtemplate à peu près tous mes documents Numbers.
    Ainsi, quand je travaille sur un document, je ne suis pas ralenti par Autosave.
    Désolé mais je ne répondrai plus avant demain.
    Pour moi il est temps de dormir.
    Yvan KOENIG (VALLAURIS, France)  mercredi 23 janvier 2011 22:39:28
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Bought a Template for a customer Need Help

    I know HTML but the coding to change things baffles me.  I am out of help with the seller who is in Australia.
    This is what the .txt looks like that I change function with.
    &Home_txt8=<font color="#d0d0d0"><b>text goes here
    It looks straightforward but I cant use /*  */  or <!--  to deactivate stuff so I can try it out.
    Any help would be welcomed.
    the url of the site is www.danceations.com
    I have done some mods but want to do more.
    Joepd

    The replies are terse and don't come right away. I bought it from some 
    outfit in Australia.  When I asked how do I get rid of the pulldown phono  on
    the index page the answer was "remove the first page of the Flash.fla.  
    Except it took out the song I added and I would need tro recreate a Flash  Page.
    Ugh!
    Not a good experience.
    joepd
    In a message dated 2/9/2012 4:19:49 P.M. Eastern Standard Time, 
    [email protected] writes:
    Re:  Bought a Template for a customer Need Help
    created by John Waller (http://forums.adobe.com/people/John+Waller)  in 
    Dreamweaver - View the full  discussion
    (http://forums.adobe.com/message/4196974#4196974)

  • How could I convert a locked PDF file to Microsoft Word file?Uergency for exam!Need help!

    How could I convert a locked PDF file to Microsoft Word file? Because of locking, I could not print it. Uergency for examination! Need help from veteran!

    Adobe do not offer any products, or help, in hacking protected files.

  • 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.

  • Script for export in datapump  -- help needed !!!

    hello all,
    i am using the following script as batch file in my database for export
    script:
    =========
    exp name/password file=d:\exp\%date%.dmp full=y log=d:\exp\exp.log an this will replace the first file(monday) on next monday.
    similar way i need a script for data pump for full database export using datapump
    thanks ,
    gold

    login to database as a dba and create directory for your dumpfile path.
    create directory dpump_dir as 'd:\exp';
    and then use the below script for export.
    expdp username/password full=y directory=dpump_dir dumpfile=%date%.dmp logfile=exp.log

  • My D420 is not working on my new Mac Mini I need help

    I have a new Canon Printer D420 . I love the machine works great
    the price was great. It worked good on my old Imac for a few weeks then
    I bought a new Mac Mini and now I can't get it to work. I reloaded my
    solfware taht came with it..... need help
    thanks 
    Ray Land 

    Hi Ray Land,
    We can help narrow down the cause.  What operating system are you using on your new Mac Mini? 
    If you are running the Mountain Lion OS, you can download the latest driver here.  An important note is that the current print queue must be deleted before installing the new driver.  This will ensure proper communication.
    If this doesn't work or you need further assistance, please contact us here.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • UIX Tree for all who needs help!!!

    Hi guys!!!
    Uix team can`t write any examples of this subject, we decided to create it :-)...
    There is an example of working tree with proxy for JDev 9.03!!!
    All data takes from the DataBase. We use a ViewObject for DataBinding with hierarhical querry
    (start with...
    connect by prior... )! Dont forget to write this querry!
    For using this querry U must use primary key (but not the rowID Item!!!!).
    Don`t forget to change the name of your package, appmodule in UIX and Java!!!
    There are Java & Uix files here!
    If U have any questions ask us for e-mail: [email protected] !
    With best regards,
    Diamond Developer Team (Stukotiy Luda (advancd support), Chindakov Alex, Druppov Serge).
    From Russia!
    P.S. We will be glad to see the working example of hGrid with the same DataBinding!
    package mypackage1;
    import java.lang.String;
    import oracle.cabo.data.jbo.ui.bind.UIBindingUtils;
    import oracle.cabo.servlet.BajaContext;
    import oracle.cabo.servlet.Page;
    import oracle.cabo.servlet.event.EventResult;
    import oracle.cabo.servlet.event.PageEvent;
    import oracle.cabo.servlet.ui.BajaRenderingContext;
    import oracle.cabo.ui.RenderingContext;
    import oracle.cabo.ui.UIConstants;
    import oracle.cabo.ui.data.DataObject;
    import oracle.cabo.ui.data.DataObjectList;
    import oracle.cabo.ui.data.tree.ClientStateTreeDataProxy;
    import oracle.cabo.ui.data.tree.SimpleTreeData;
    import oracle.jbo.NoDefException;
    import oracle.jbo.Row;
    import oracle.jbo.RowIterator;
    import oracle.jbo.ViewObject;
    import oracle.jbo.server.ApplicationModuleImpl;
    // --- File generated by Oracle Business Components for Java.
    public class Mypackage1ModuleImpl extends ApplicationModuleImpl
    * This is the default constructor (do not remove)
    public Mypackage1ModuleImpl()
    * Container's getter for TsStatView1
    public TsStatViewImpl getTsStatView1()
    return (TsStatViewImpl)findViewObject("TsStatView1");
    * Sample main for debugging Business Components code using the tester.
    public static void main(String[] args)
    launchTester("mypackage1", "Mypackage1ModuleLocal");
    public class JBODataObjectList implements DataObjectList
    * Create a data object list based on the current range of
    * this row iterator.
    public JBODataObjectList(RowIterator iterator)
    this(iterator, Integer.MAX_VALUE);
    * Create a data object list based on the current range of
    * this row iterator, with a restricted size.
    public JBODataObjectList(RowIterator iterator, int maxSize)
    _iterator = iterator;
    size     = Math.min(iterator.getRowCountInRange(), maxSize);
    * Return the size of the list.
    public int getLength()
    return _size;
    * Get an item from the list.
    public DataObject getItem(int index)
    // Make sure we're in range
    if ((index < 0) || (index >= _size))
    throw new IndexOutOfBoundsException();
    Row row = _iterator.getRowAtRangeIndex(index);
    if (row == null)
    return null;
    return new DO(row);
    // An inner class that handles a single row
    static private final class DO implements DataObject
    public DO(Row row)
    _row = row;
    public Object selectValue(RenderingContext context, Object key)
    // Make sure that the key is non-null
    if (key != null)
    try
    // Treat the key as an attribute name
    return _row.getAttribute(key.toString());
    catch (NoDefException nde)
    // Do nothing. It's legal to pass an invald key to DataObjects.
    return null;
    private final Row _row;
    private final RowIterator _iterator;
    private final int _size;
    public class Tree implements DataObject {
    private String submitURL = null;
    public Tree(String submitURL){
    this.submitURL = submitURL;
    public static DataObject getProxy(RenderingContext rc, String ns, String name) {
    return new Tree(null);
    public static EventResult handleExpand(BajaContext context,Page page,PageEvent event)
    throws Throwable
    String state = event.getParameter(UIConstants.STATE_PARAM);
    String node = event.getParameter(UIConstants.NODE_PARAM);
    String selection = event.getParameter(UIConstants.SELECTION_PARAM);
    EventResult result = new EventResult(page);
    Object proxy = new ClientStateTreeDataProxy(null, state, node, selection);
    result.setProperty("proxy", proxy);
    return result;
    public static int s = 0; // ������
    public static int i = 0; // ������
    // � ��������, ����������� ����, ���������� ��� ����� ������� �������� �����������!!!
    public static String mOwner[]=new String[100]; // �������� ���� fk_owner �� ����
    public static String mName[]=new String[100]; // �������� ���� fc_name �� ����
    public static DataObject getTree(RenderingContext rc, String ns, String name){
    SimpleTreeData child = new SimpleTreeData();
    SimpleTreeData parent = new SimpleTreeData(); // ����������� ��������
    SimpleTreeData parent1 = new SimpleTreeData(); // �������� �������
    SimpleTreeData parentBuf[] = new SimpleTreeData[130]; // ����� ��� �������� ����������� ��������
    int ownerInt; // ��� �������� fk_owner ������� ������
    int buf = 0; // ��� �������� fk_owner ������� ������
    String ownerStr, // --- � ������� ������
    valueColumn; // ������ �������� ������� ������
    if (i==0)
    ViewObject vo = UIBindingUtils.getViewObject(rc); // ��� VO
    vo.previous();
    //for(s=0;s<96;s++)
    while(vo.hasNext())
    Row row=vo.next();
    mOwner[s]=row.getAttribute("FkOwnerid").toString();
    mName[s]=row.getAttribute("FcName").toString();
    s++;
    for (i=0;i<s;i++)
    ownerStr=mOwner;
    valueColumn=mName[i];
    //ownerStr = row.getAttribute("FkOwnerid").toString();
    ownerInt = Integer.parseInt(ownerStr);
    //valueColumn = row.getAttribute("FcName").toString();
    if(ownerInt == 0) // ������ ������
    parent1 = new SimpleTreeData();
    parent1.setText(valueColumn);
    parent1.setExpandable("expanded");
    parent.addChild(parent1);
    buf = 0;
    // parentBuf[ownerInt] = new MySimpleTreeData();
    else
    if(ownerInt != buf)
    if(ownerInt > buf)
    child = new SimpleTreeData();
    child.setText(valueColumn);
    child.setExpandable("expanded");
    parent1.addChild(child);
    parentBuf[ownerInt] = parent1;
    parent1 = child;
    buf = ownerInt;
    else
    child.setExpandable("no");
    parent1 = parentBuf[ownerInt];
    child = new SimpleTreeData();
    child.setText(valueColumn);
    child.setExpandable("expanded");
    parent1.addChild(child);
    parent1 = child;
    buf = ownerInt;
    else
    child.setExpandable("no");
    child = new SimpleTreeData();
    child.setText(valueColumn);
    child.setExpandable("expanded");
    //parentBuf[ownerInt].addChild(child);
    parent1 = parentBuf[ownerInt];
    parent1.addChild(child);
    parent1 = child;
    if(i == 95)
    child.setExpandable("no");
    //child.setExpandable("no");
    return parent;
    public Object selectValue(RenderingContext rc, Object p1) {
    BajaContext bc = BajaRenderingContext.getBajaContext(rc);
    EventResult result = EventResult.getEventResult(bc);
    Object proxy = (result==null) ? null : result.getProperty("proxy");
    if (proxy==null) proxy = new ClientStateTreeDataProxy( submitURL, null, null, null);
    return proxy;
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:bc4j="http://xmlns.oracle.com/uix/bc4j"
    xmlns:html="http://www.w3.org/TR/REC-html40">
    <bc4j:registryDef>
    <bc4j:rootAppModuleDef name="TsStatView1AppModule"
    definition="Project4.Mypackage1Module"
    releaseMode="stateful" >
    <bc4j:viewObjectDef name="TsStatView1"
    rangeSize="3" />
    </bc4j:rootAppModuleDef>
    </bc4j:registryDef>
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui">
    <provider>
    <data name="Proxy">
    <method class="mypackage1.Tree" method="getProxy" />
    </data>
    <data name="Nodes">
    <method class="mypackage1.Tree" method="getTree" />
    </data>
    </provider>
    <contents>
    <bc4j:rootAppModuleScope name="TsStatView1AppModule" >
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title=""/>
    </metaContainer>
    <contents>
    <bc4j:viewObjectScope name="TsStatView1" >
    <contents>
    <pageLayout>
    <contents>
    <form name="menuForm" >
    <contents>
    <tree id="menuTree" formSubmitted="true"
    data:nodes="nodes@Nodes"
    data:proxy="proxy@Proxy" />
    </contents>
    </form>
    </contents>
    </pageLayout>
    </contents>
    </bc4j:viewObjectScope>
    </contents>
    </document>
    </contents>
    </bc4j:rootAppModuleScope>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <event name="expand" >
    <method class="mypackage1.Tree" method="handleExpand" />
    </event>
    </handlers>
    </page>

    Don't forget, you can make code easier to read by enclosing it in [code ]  tags (without the space in the first tag), so it looks like this:
    <provider>
         <data name="bundle">
              <bundle class="strings" />
         </data>
    </provider> instead of this:
    <provider>
         <data name="bundle">
              <bundle class="strings" />
         </data>
    </provider>

  • TS1702 how can I get anyone to give us answer on the iphone apps casino game we purchased few days ago which once the token was finished we were not able to reset and play just for fun and not for gambling. we need help and not to be charged additional

    few days ago I have purchased Iphone casino games from itunes apps store. One of the game was made by the company called "ARISTOCRAT" dragan game. Usually we will get basic tokens to play the game, and if we ran out of the tokens all we need to do is going into "manu" and "setting" selete "dream" and reset that we should be able to continue play the game with same amount of the basic tokens. The one game would not let us to go back to the game. There were msg came out said" game center requires an active connection to the internet"? I didn't feel comfortable because we purchased the game for $1.99 to play for fun and not to gamble. We do have credit card on your file. We don't want to be charged alot of money for something not in our well. I need help to answer the question on the following:
    1.  Are we able to ever play this game again without going to internet? We don't even know which site to go to, because when we press the ok button nothing else came out to direct us to any area.
    2. We only purchased the few days ago order ID: MGT74GN6V7 on 10/03/12. all the other games we purchased we were able to continue to play by doing the same setting.
    Thank you for your help and looking forward to hear from you!

    You need to contact itunes support
    We are all itunes users just like you.
    http://www.apple.com/support/contact/

  • HT201413 I have been trying to restore my iphone 4s for 5 hours, please help! The update wouldn't work and now when I connect the iphone it says I have to resore in order to start using itunes but I am getting an error msg. HELP!

    I am trying to update a 4s. The update did not work for some reason. Now I need to restore the iPhone. When I connect the usb to the computer and phone it says I need to restore. So, I click to restore. It starts extracting the software. But I am continually getting the same error message that it cannot complete for unknown error. I have been working on this for 5 and a half hours. I'm tired, mu husband needs his phone and apple support is a joke and of course I can't find any answers anywhere. Please help!

    Hi MB2751,
    As an iPhone user myself, I know it must be very much a problem to have the phone out of service because of an error such as you are seeing. Let's see if we can get you back up and running.
    I would suggest that you troubleshoot using the steps in this article - 
    If you can't update or restore your iPhone, iPad, or iPod touch
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Help with Automator Script for QuickTime Pro Movie Conversion from Vado

    All my videos from my Creative Vado do not show up in iMovie 09 initially on import. By trial and error, I have discovered that the old version of QuickTime Pro 7 ($29.95) will convert them to .mov files that can be seen by iMovie 09 once the converted videos are imported back into iPhoto.
    I am (very) new to mac things, and it looks like in theory I could use Automator to handle to conversion process, and perhaps even the re-import into iPhoto. Does anyone have any suggestions on how to go about this? Where would be a good site to post this as a project that I could pay some one to help me, provide an automator script/workflow?
    Are any other solutions available? Buy Final Cut etc?
    PS (Rant): One of the reasons I bought a MacBook Pro and iLife was to take advantage of what I thought was supposed to be Apple's superior multimedia handling. It seems ludicrous to me that with a MacBook Pro running the latest software (10.6.4), and using the latest versions of iLife, I'd have to buy an old version of QuickTime to convert my videos so that I could manipulate them in iMovie. Sigh.

    MPeg Stram clip will export files which are compatible with iMovie '09. It (iMovie )can import the following.
    DV
    AIC
    Motion-JPEG
    Photo-JPEG
    MPEG-4 (Supported profiles)
    H.264 (Supported profiles)
    Apple Animation (Movie '09 only)
    Apple Video (iMovie '09 only)
    iMovie '08/'09 will not accept files containing extraneous data tracks such as:
    'Tween
    Text
    Chapter
    Closed Caption
    Secondary audio such as AC3
    etc.
    iMovie '08/'09 Will not accept files that rely on proprietary/third-party components such as
    DivX
    WMV
    XviD
    etc.

  • Custom calculation script for a lease (please help)

    I have so little experience with this it isn't funny.  I prior to now have never used javascript.  But Im trying to get my lease form to auto calculate a tenants pro-rate that would be due if they moved in on the middle of the month for example.
    I created the below script and im sure there is a few things or more than a few things wrong with it...can anyone give me some pointers.
    // Custom Calculate script
    (function () {
        // Get the input field values, as strings
        var leasemonth = getField("LeaseBegMonth").valueAsString;
        var leasestartday = getField("LeaseBegDay").valueAsString;   
        var rentamount = getField("MonthlyRent").valueAsString;
        // calculate how many days in the month
        if ( leasemonth=1
                var leasedays = 31
        elseif (leasemonth=2
                var leasedays = 28
        elseif (leasemonth=3
                var leasedays = 31
        elseif (leasemonth=4
                var leasedays = 30
        elseif (leasemonth=5
                var leasedays = 31
        elseif (leasemonth=6
                var leasedays = 30
        elseif (leasemonth=6
                var leasedays = 30
        elseif (leasemonth=7
                var leasedays = 31
        elseif (leasemonth=8
                var leasedays = 31
        elseif (leasemonth=9
                var leasedays = 30
        elseif (leasemonth=10
                var leasedays = 31
        elseif (leasemonth=11
                var leasedays = 30
        elseif (leasemonth=12
                var leasedays = 31
        //CALCULATE HOW MANY DAYS REMAIN
        var daysremain = LeaseBegDay-leasedays   
        //CALCULATE THE PRORATE AND DISPLAY IT
        event.value = (rentamount/leasedays)* daysremain
    Thanks for your help!!

    Thank you thank you thank you!  Here is the revised script with the changes.  about to go plug it in and see if it works.
    // Custom Calculate script
    (function () {
        // Get the input field values
       var leasemonth = Number(this.getField("LeaseBegMonth").valueAsString);
       var leasestartday = Number(this.getField("LeaseBegDay").valueAsString);   
       var rentamount = Number(this.getField("MonthlyRent").valueAsString);
       var leasedays = 0
        // calculate how many days in the month
    if ( leasemonth==1)
           leasedays = 31;
    else if (leasemonth==2)
           leasedays = 28;
    else if ( leasemonth==3)
           leasedays = 31;
    else if (leasemonth==4)
           leasedays = 30;
    else if ( leasemonth==5)
           leasedays = 31;
    else if (leasemonth==6)
           leasedays = 30;
    else if ( leasemonth==7)
           leasedays = 31;
    else if (leasemonth==8)
           leasedays = 31;
    else if ( leasemonth==9)
           leasedays = 30;
    else if (leasemonth==10)
           leasedays = 31;
    else if ( leasemonth==11)
           leasedays = 30;
    else if (leasemonth==12)
           leasedays = 31;
        //CALCULATE HOW MANY DAYS REMAIN
        var daysremain = leasestartday-leasedays   
        //CALCULATE THE PRORATE AND DISPLAY IT
        event.value = (rentamount/leasedays)* daysremain

Maybe you are looking for

  • Smartform report generation error

    Hi, I have a problem with a report calling a smartform. The report works perfectly on the 1 system but on the other system there is a generation error. I found that the problem lies with the following declaration: data: otf_info type SSFCRESCL.  I co

  • Error while debugging the Oracle Stored Proc Body

    I am trying to debug a standalone Oracle Stored Proc. I keep a break point on the Package body, and JDeveloper doesn't seem to pick it up at all. I have made sure that are the prerequisites are met and all the instructions have been followed diligent

  • How do I create a subset of contacts for emailing purposes

    I have several contacts that I wish to mail to. Some have email addresses some do not; some emailable contacts I want to mail to and some I do not. I thought I would move the contacts off the cloud (as it would be faster to create and edit a subset).

  • PM Order - Change status to Technically Complete

    Hello experts! Can anyone let me know how to change the status of an order through a BAPI? We believe the BAPI is bapi_alm_order_maintain  but I'm not sure how to use it. If it's that one, can anyone give us what parameters to use? We just want to cl

  • Why can't I open PDF files all the time?

    OS X has rendered my protools software as useless. Now my computer also opens MS word & excel on start up. Sluggish to open microsoft office... This is better?