Programmatic sync of iphone through COM - how to know when it's completed?

I'm trying to programmatically control iTunes from my C# application using the COM API. I can start itunes fine, and I can also find the correct iphone and start the synchronization.
The problem is, I'd like to be informed when the synchronization is completed so that I can move on in my application. Right now, I try to look for disk space changes on the iphone and guess when sync is done, but this is very fragile.
Does anyone know of a solution to this? (Or, if Apple is reading these forums - +please please+ add this functionality to the API for the next version)
Another question while I'm at it: Is it possible to control itunes without having it open the main window? I'd like to start it from my app, keep it hidden while I sync, and then close it when it's done.

Hmmmm. I usually defer to Teridon when it comes to matters relating to the COM interface. I'm not sure he works much on intergrating the COM application with other programs, though.
It might be worth checking in at his Google user group to see if he can offer you any advice:
http://groups.google.com/group/teridons-itunes-programs

Similar Messages

  • How do I sync my iPhone 5 with my iPad so when I download apps they go to both devices

    How do I sync my iPhone 5 with my iPad so when I download apps they go to both devices

    Turn ON Settings > iTunes & App Stores > Automatic Downloads for Apps.

  • When syncing 2 iphones to itunes how do you avoid getting each others apps

    When you sync 2 iphones to itunes how do you avoid
    getting each others apps

    For some reason without syncing
    when I download an app the 2 phones
    get the same app. They are 2 different
    phones with 2 different apple IDs

  • Do you need to sync the iPhone through iTunes if you sync over the air?

    Do you need to sync the iPhone through iTunes if you sync over the air?
    My MacBook Pro and iPhone 3G with OS 4 synchronize with each other over the air through my Snow Leopard Server. Though when I connect it to iTunes I see that it allows me to checked "Synchronize with this computer" type options and I'm confused as to why that would be if they're synchronizing over the air.
    Can someone help clarify when those should be checked? Because I do want everything that's on my computer synchronized with my iPhone and vice versa, but if I add the accounts on my phone manually that seems to work too.

    In regards to syncing contacts and calendar events, if you are syncing this data over the air on your iPhone and the contacts and calendar events synced over the air on your iPhone match the Address Book and iCal data on your Mac, there is no reason to sync this data direct with the Address Book and iCal on your Mac via the iTunes sync process.

  • How to know when I'm doing a createInsert?

    how to know when I'm doing a createInsert, this to hide a button when you run this action, I am using a task flow.
    my version of jdeveloper is 12c

    hi,
      So you are using the createInsert as a method call in task flow. That is your form/table will be come new rows and you want to disable some button.
    Your task flow might be as below
          CreateInsert---->Page.
    To do so
    1.) Take properties of your method call and bind the Method property to a method in a bean (bean registered in the task flow with scope view or any higher scope)
    2) Call the create insert operation programmatically in that method.
    3) And in that method after the createinsert ,set a boolean variable in pageFlowScope.
    4)Put this variable in the disable property or visible propery of the button you wabt to hide/diable.
    eg:
        public void doCreateInserOperation(){
            try {
               // Programatically invoke CreateInsert
                DCBindingContainer bindings = (DCBindingContainer)getBindingContainer();
                bindings.getOperationBinding("CreateInsert").execute();
            //Set a variable in page Flow Scope 
            AdfFacesContext.getCurrentInstance().getPageFlowScope().put("disableButton", true)
            } catch (Exception e) {
                e.printStackTrace();
        public BindingContainer getBindingContainer() {
            FacesContext facesContext = getFacesContext();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            ValueExpression valueExp = elFactory.createValueExpression(elContext, "#{bindings}", Object.class);
            return (BindingContainer)valueExp.getValue(elContext);
    you can access this variable in EL expression as #{pageFlowScope.disableButton}. So when your page render it will be in CreateInsert mode and the button will be disabled/hidden.
    I hope this will help you.
    With regards,
    Gijith.

  • How i know when a EXECUTE_QUERY retrieved last record

    Hi...
    How i know when the EXECUTE QUERY retrieved the last record in a block ....?
    Exist a trigger after trigger POST-QUERY?
    Regards
    Hector Gabriel Ulloa Ligarius
    Santiago of Chile
    http://es.groups.yahoo.com/group/desarrolloOracle/

    Kevin, sorry
    But the :system.last_record not change the value during the execution of EXECUTE_QUERY.
    Only useful when the data was retrieved into blocks...not during..
    Other mode?
    Regards
    Hector Gabriel Ulloa Ligarius
    Santiago of Chile
    http://es.groups.yahoo.com/group/desarrolloOracle/

  • HT2173 How to know when a hard drive has failed ?

    How to know when a hard drive has failed ?

    Machine doesn't boot.  You experience strange crashes.  Gets wrong results.  Your harddrive is five or more years old.  Time to consider repacing it.   You do have backup?
    You may want to run these "standard" fixes if the problem persists.
    1) Check the amount of free space on your harddrive.  You should have a several gigs free.
    2) You should run disk utility
         a) verify the disk
         b) update your permissions.
    3) Try a safe boot.
        Shutdown your machine.  Hold down the shift key.  Poweron.  Wait awhile Wait awhile while you harddrive
          is being checked.
        http://support.apple.com/kb/ht1455
    4) You may want to run applejack to clean up your machine.
         http://applejack.sourceforge.net/
    a lot more ways to fix your Mac.
    http://www.thexlab.com/faqs/faqs.html
    verify & repair your startup drive
    To verify & repair you file system on the startup drive, you will need to run disk utility from you installation DVD.
    This article  will tell you how to get to disk utility.  Once in a disk utility, you can go and attempt to recover the disk.
    http://support.apple.com/kb/TS1417
    To repair your startup drive, you will need to run disk utility from your startup DVD.
    Mac OS X 10.4: About the utilities available on the Mac OS X 10.4 Install DVD
    http://support.apple.com/kb/HT2055
    How to run disk utility from your startup DVD.
    Insert your  startup DVD  into your reader.  Power down your machine.  Hold down to the c key.  Power on your machine.  This will bootup your startup DVD.
    This will bring you to a panel asking you for your language.  Pick your language.
    You you come to the Install Mac OS panel.  Do not install.
    Click on Utilities menu item.  This will give you a pulldown list of utilities.
    Click on the disk utility.
    You are now in disk utility.  Pick your disk.  Click on repair it should be on the lower right of the panel.
    Once the repair completes successfully, you should update your permissions.
    Verify a disk
    As an alternative, you can verify that the filesystem on the disk is correct. You will not be able to repair the file system.
    I suggest that you use disk utility to verify that your startup disk is OK. 
    Macintosh-HD -> Applications -> Utilities -> Disk Utility 
    Start up disk utility.  On the left pane view, you will see a list of all your disks.  
    Click on your startup disk.
    Click on the First Aid  Tab.
    Click on verify.  
    Hopefully your disk will verify.  If not, you have to boot from your installation DVD and run Disk Utility from there to attempt to repair your file-system.

  • I did a full system restore to my phone along with the new 7.0 update. Now I went to restore my phone setting back through Itunes and it goes through all the steps but when it is completed it wont get past the "Connect to Itunes" screen

    I did a full system restore to my phone along with the new 7.0 update. Now I went to restore my phone setting back through Itunes and it goes through all the steps but when it is completed it wont get past the "Connect to Itunes" screen

    So what happens when you connect to iTunes?

  • I'm a Microsoft Outlook for Mac user, I need information of how to know when e-mail was readed and confirm receipt of e-mails sent. thank you!  regards Mauricio

    I'm a Microsoft Outlook for Mac user, I need information of how to know when e-mail was readed and confirm receipt of e-mails sent. thank you!  regards Mauricio

    Mail and Address book

  • How to know when the PRICE AFTER DISCOUNT changed and get the value

    Hi,
    Everything I do to see if a value changed in the grid works except for PRICE AFTER DISCOUNT
    which seems to be inaccessible.
    Any idea how to know when exactly this value changed and do actions accordinly ?
    Also I always get 0.00 if I try to get the value of it
    This works to get in the condition of a vlaue changing but I always get 0.00 as the value of the column
    if (pVal.ItemUID == "38" && pVal.ColUID == COL_DISCOUNT.ToString() && pVal.EventType == BoEventTypes.et_VALIDATE && pVal.ItemChanged == true && pVal.ActionSuccess == true)
        try
            SAPbouiCOM.Matrix Matrix = (SAPbouiCOM.Matrix)SBO_Application.Forms.ActiveForm.Items.Item("38").Specific;
            SAPbouiCOM.EditText Editor = (SAPbouiCOM.EditText)Matrix.Columns.Item(COL_DISCOUNT).Cells.Item(pVal.Row).Specific;
            SBO_Application.MessageBox("Discount changed for : " + Editor.Value + "...", 1, "Ok", "", "");
        catch (Exception ex)
            SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");
    And this do not even get into the condition even tought I SEE the column PRICE AFTER DISCOUNT:
    if (pVal.ItemUID == "38" && pVal.ColUID == COL_PRICEAFTERDISCOUNT.ToString() && pVal.EventType == BoEventTypes.et_VALIDATE && pVal.ItemChanged == true && pVal.ActionSuccess == true)
        try
            SAPbouiCOM.Matrix Matrix = (SAPbouiCOM.Matrix)SBO_Application.Forms.ActiveForm.Items.Item("38").Specific;
            SAPbouiCOM.EditText Editor = (SAPbouiCOM.EditText)Matrix.Columns.Item(COL_PRICEAFTERDISCOUNT).Cells.Item(pVal.Row).Specific;
            SBO_Application.MessageBox("Price after discount changed for : " + Editor.Value + "...", 1, "Ok", "", "");
         catch (Exception ex)
             SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");

    just idea, maybe it will works
    Create one udf in row level and set there FS based on changes on price after discount and fill value what is in price after discount. Then the validation make on this field instead of standard SAP field.

  • How to know when invoke bytecode implements?

    I've got a classfile - it has few invokeinterface bytecodes inside - their count is defined dynamically - when class is running.
    And I've got a program, which runs this class.
    The aim of this program - to gather statistics of invokeinterface calling frequency.
    How to know when invokeinterface bytecode implements?
    (In that moment I plan to update several digits)
    Have You got an advise for me?
    Thanks.

    You must use the debugging interface, or get a code profiler. Do a search on all forums for profiler, you'll get tons of information.

  • How to know when the JComboBox popup is about to show or hide?

    Hi all,
    In JDK 1.4, a new addPopupMenuListener() was added to the JComboBox component. I found out I have to use JDK 1.3, but I already wrote a lot of code around this particular capability. I am trying to figure out how to duplicate it in JDK 1.3. I need to know BEFORE and AFTER the popup is displayed. OR, is there a way with JDK 1.3 that as soon as they click the combo box, it fires an event. The thing is, as soon as they click it, I want to change the background color. When they are done selecting, I can use an ActionListener or ItemListener to find out what was selected and change the color again. My killer is trying to figure out how to know when they have selected the box. I tried adding MouseListener, PropertyChangeListener, AncestorListener. None are doing a thing when the JComboBox is first selected.
    Any help would be much appreciated.
    Thank you.

    Hi all,
    In JDK 1.4, a new addPopupMenuListener() was added to the JComboBox component. I found out I have to use JDK 1.3, but I already wrote a lot of code around this particular capability. I am trying to figure out how to duplicate it in JDK 1.3. I need to know BEFORE and AFTER the popup is displayed. OR, is there a way with JDK 1.3 that as soon as they click the combo box, it fires an event. The thing is, as soon as they click it, I want to change the background color. When they are done selecting, I can use an ActionListener or ItemListener to find out what was selected and change the color again. My killer is trying to figure out how to know when they have selected the box. I tried adding MouseListener, PropertyChangeListener, AncestorListener. None are doing a thing when the JComboBox is first selected.
    Any help would be much appreciated.
    Thank you.

  • Getting Rid Of Duplicate Pics on iMac synced with iPhone 3GS. HOW?!

    Ok heres the thing. And I searched the forums before coming here to ask for help. I have a white iPhone 3GS 16gb and every time I sync my iPhone with iPhoto it just keeps duplicates. I literally have 1400 pictures and maybe 300 are original, the rest, copies, copies, and more copies.
    PLEASE help me figure out how to delete duplicate pictures in iPhoto 09'. I am currently using the base model 3.06 ghz, 21.5 inch screen version Apple iMac, running "Snow Leopard", 10.6.4 if that helps. I just want to get rid of of all these duplicates without having to go through the whole thing one by one! There has to be away to, like in iTunes, you can hit the "Duplicates" button and it brings them up and you can erase them one time not do it for each one!!
    Anyone know or understand what I am trying to do?
    Thank you in advance for sharing your experiences.

    Something is not working correctly - if you have checked ignore duplicated you should not be importing them
    Duplicate Annihilator is a good solution for taking care of Duplicates within iPhoto - http://www.brattoo.com/propaganda/
    Maybe renewing your iPhoto preference file would help for the future - A good general step for strange issues is to renew the iPhoto preference file - quit iPhoto and go to "your user name" ==> library ==> preferences ==> com.apple.iPhoto.plist and trash it - launch iPhoto which creates a fresh new default preference file and reset any personal preferences you have changed and if you have moved the iPhoto library repoint to it. This may help
    This does not affect your photos or any database information (keywords, faces, places, ratings, etc) in any way - they are stored in the iPhoto library - the iPhoto preference file simply controls how iPhoto works - which is why renewing it is a good first step.
    LN

  • ITunes opens with error message "Eyephedrine 2.60: unable to locate tm9J plugin" and won't sync my iphone (doesn't even show up when plugged in)

    ...also, iTunes won't quit--I have to force quit to get out of it.  but the not syncing my iPhone 3G is a much bigger problem!  Thanks for any
    help!

    Try the steps in this Apple article -> iTunes: Troubleshooting issues with third-party iTunes plug-ins
    Does the error still appear after after removing the plug-ins from the path mentioned below?
    /Users/username/Library/iTunes/iTunes Plug-ins/
    /Library/iTunes/iTunes Plug-ins/
    Is the iPhone recognized correctly after stopping the Eyephedrine plug-in error? And is iTunes now able to connect to the online store?

  • Syncing Error: iphone doesn't have enough space when there's plenty

    When I sync my iPhone, I sync contacts, calendars, music, podcasts. I have the 8 gig.
    The space meter bar shows blue, purple etc... and I'm only using 6 gigs.....
    Here is the problem...
    When I try to sync my iPhone back to my mac, it turns the space bar completely yellow and says it doesn't have enough space on my iPhone to sync. The error msg. only sees the amt. of space left (approx 2 gigs) after a full sync.
    A full restore takes care of it, but I am having to restore every time I sync.
    Itunes doesn't seem to overwrite the old info....it just tries to put the original 6 gigs on to my already full iPhone.
    I have version 1.1.1 iPhone and version 7.4.2 (4) itunes
    Is this an auto sync prob?
    Any help?

    Likely you have a corrupted file, they tend to wreak havoc on the phone. Try this...
    Sync 1 section at a time, when you hit the culprit you will know which sync it is under.
    Then you will need to work with that sync to try to locate the corrupt file, eliminate parts to see which part it is in. Weed it out, it will take time but you will eventually find the culprit.
    Good luck!

Maybe you are looking for

  • Unable to get USB devices working on VirtualBOX (Puel)

    Hello, when I put and USB device on a Windows Virtualbox machine, I always get this error: Not permitted to open the USB device, check usbfs options Is there any solution to this problem for arch? This is my fstab: # /etc/fstab: static file system in

  • Issue In Sales Invoice DTW with down payment

    Dear Friends, I am trying to add some Sales Invoice with advance payment by DTW. Entries of Sales order , Sales Advance Down Payment request & Payment against Advance Down payment request are already done. In Invoice master file for DTW I add down pa

  • Hi I need to change password but forgotten answer to one of question can help please?

    Hi I am trying to change my password on I cloud but have forgotten one of the answer to a question can somebody help please?

  • Encore + PS     Menue Problem

    Hello everyone, i have a Problem with Adobe Encore CS6 i built a menue with photoshop cs6 and imported it in Encore. on in the menue Screen it works, but in the preview and after Rendering  it doesnt. cant find the mistake. thank you for help and sor

  • Problems Downloading Quicktime For Windows

    I have made numerous attempts over the past few weeks to download QuickTime for Windows XP. Each attempt results in the following: I end up at a page that says "Your download will start automatically" and "Thankyou for downloading QuickTime." Of cour