Erica Utilities
A collection of handy command-line utilities for the iPhone and iPod touch geek. Hopefully, I’ll have version 0.4 all ready later this week or next. In the mean time, if you want the most recent versions grab the individual files, not the tar archives.
doAlert
You supply a string and doAlert opens an alert window with that string.
ip-print
Scrapes the current ip-address used by your iPhone or iPod touch.
playaudio
Play an audio file from the command line on either iPod touch or iPhone.
plutil
Property List utility modeled on OS X’s plutil.
restart
Restart issues a launchctl command that restarts SpringBoard. Use this utility whenever you add or remove Applications to update the display and SpringBoard to recognize new items.
sendFileByMail
For iPhone or iPod touch with mail configured. SendFileByMail takes, at this time, one argument, a file to send by mail. It opens the mail program, creates a new message with that attachment.
snap
Snap grabs the contents of the screen and saves it to a snapshot in png format. Snap takes one argument, the name of the file to snap to.
sound
Sound takes one argument (y or n) and enables or disables system sound.
xwidg
Xwidg supports transferring your non-standard Applications into /var/root/Applications. It links to them via the undocumented /Widgets folder. Xwidg creates or deletes the folder and restarts SpringBoard. This lets you easily hide all third party apps (good for Genius Bar visits) or link them back. Xwidg takes no arguments. It looks for /Widgets and remove the symbolic link if present or adds it when absent.