Implementing OTA Photo syncing on a jailbroken iPhone.

Discussion in 'Jailbreaks and iOS Hacks' started by WilliamTM, Apr 9, 2009.

  1. WilliamTM macrumors member

    WilliamTM

    Joined:
    Jul 21, 2008
    Location:
    Stafford, UK
    #1
    So, I had a pretty good idea today. At the moment, if I want to get photos off my iPhone, I have two options.
    1. Use SFTP to connect to it, then download the photos from /private/var/mobile/Media/DCIM/100APPLE and screenshots from /private/var/mobile/Media/DCIM/999APPLE (this works over WiFi too, which is nice).
    2. Plug the iPhone into my Mac and use Image Capture.app to download the files.
    However, that's annoying. Now, I was thinking, would it be possible to script this somehow to do it automagically? Basically, an icon on my desktop (or something like that) which, when opened, does the following:
    1. Connects to 192.168.1.6 (my iPhone's IP), and logs in to SFTP (usual stuff: root/alpine).
    2. Navigates to /private/var/mobile/Media/DCIM/100APPLE and downloads only the JPG files within that folder to my desktop.
    3. Navigates to /private/var/mobile/Media/DCIM/999APPLE and downloads only the PNG files within that folder to my desktop.
    4. Closes the connection and any apps or whatever that are running that it opened (if necessary).
    I'm sure this is possible (a friend mentioned it could be done with shell scripting), but I have zero knowledge of how that works or what to do, so I'm wondering if anyone here might know? :D
     
  2. dhlizard macrumors G4

    dhlizard

    Joined:
    Mar 16, 2009
    Location:
    The Jailbreak Community
    #2
    I use iPhoto just before I sync. Takes about 30 extra seconds.
     
  3. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #3
    That would only work if you are at home. If you are home, just sync the iPhone to get the photos off, no? :)
     
  4. WilliamTM thread starter macrumors member

    WilliamTM

    Joined:
    Jul 21, 2008
    Location:
    Stafford, UK
  5. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #5
    So you think somehow that a 54Mbps wireless connection is going to be faster than a USB connection at 480Mbps? I'm confused here...
     
  6. dhlizard macrumors G4

    dhlizard

    Joined:
    Mar 16, 2009
    Location:
    The Jailbreak Community
    #6
    I don't get it either. iPhoto can DL 20 pics in less than 5 secs and delete them from the iPhone.

    What's not to like. After all, you have to plug the phone in once and a while to sync it ???
     

Share This Page