Erica Sadun
erica at ericasadun.com
Erica Sadun | 3:48 pm | October 25, 2007 | How-to, Utilities, iPhone
Need to shoot your screen? Snap2album allows you to take screen shots and send them directly to your iPhone photo album, where you can email them or sync them to your computer.The program is designed to be run from the command line. It takes no arguments. When run, it snaps the screen, puts the results into your camera roll, and quits.Install snap2album anywhere in your personal UNIX path. I keep mine in ~/bin. Other possibilities include /usr/local/bin and /bin. Keep in mind that space on the OS partition is limited. If you’ve removed the “noexec” flag from your media partition, it’s a lot better to keep your third party utilities there.Some people have asked about running snap2album on a time delay. If you have sleep installed, you can issue a command like: sleep 5; ./snap2album. Be aware though that the utility is not meant to be run from the iPhone itself but rather through an ssh session.If you want to snap your screens without the command-line, there’s also a solution. I gave Nate True a copy of the code and he added it to his Dock utility. That’s a much better choice for grabbing screen shots when you’re not near your home computer.
Erica Sadun | 4:03 pm | October 16, 2007 | How-to, Hacks
You need to add an afc2 service if you want to use iphuc and see your entire directory tree. The instructions and a couple of utilities are found here
In order to enable afc2 on your iPhone, go to /System/Library/Lockdown. Copy your Services.plist to OriginalServices.plist. Then edit Services.plist to add:
<key>com.apple.afc2</key> <dict> <key>Label</key> <string>com.apple.afc2</string> <key>ProgramArguments</key> <array> <string>/usr/libexec/afcd</string> <string>--lockdown</string> <string>-d</string> <string>/</string> </array> </dict>
Reboot your iPhone. Then, in iphuc, issue setafc com.apple.afc2 and bob’s your uncle.