Terminal Tip: Syncing your iPhone or iPod touch from the command line

Filed under: , , , ,

This is one of those completely useless but cool things that one figures out when one is spending far too much day trying to do something else and not accomplishing it. In my case, I’m trying to figure out how to force an iPod touch or iPhone to load a backup set. (Do you know? Let me know in the comments!) What I accomplished though was figuring out how to sync the unit with a simple command-line utility. Here’s how.

Launch System Profiler. Choose Apple > About that Mac > More Info.

Identify your iPod In

System Profiler, go to Hardware > USB and locate the iPod or iPhone you’re using. Look up the Manufacturer ID (0×05ac (Apple Computer, Inc.) and Product ID (0×1291 for my iPod touch)

Launch Terminal. that requires shell access.

Find the utility. Change directories to /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/Resources/.

Run reenumerate Give it one argument: the vendor id followed by a comma followed by the product id, e.g. ./reenumerate 0×05ac,0×1291

Wait. iTunes will reload your iPod or iPhone and sync it.

Permalink | Email this | Comments

Orginal post by Erica Sadun

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
Related Articles
  • Mobile Scrobbler adds command-line track metadata
  • A (slightly) simpler command-line Spotlight search
  • Forget iPhone: iPod Touch Supports VoIP Calls
  • Apple’s Jobs Reportedly Criticizes MobileMe Launch
  • The PC of the Future Looks Just Like the iPhone
  • Apple launch 16GB iPhone & 32GB iPod Touch
  • NEC TWINPOS3500G1 New Compact Touch Screen POS Terminal for food and beverage markets
  • Apple’s iPod Touch May be the Future for Mobile Devices
  • Case-mate Clear Armor Line
  • Ask TUAW: Announcing Caller ID, instance Machine, iTunes syncing, Bonjour and more
  • No comments yet. Be the first.

    Leave a reply