ShopList:An application to manage your shopping lists.
By Felipe Saint-Jean
http://mazinger.cs.yale.edu/shoplist/
Importing/Exporting lists to text files
Now if you SSH to your phone you'll see a cool command line app called import_export that works as follows:
(Warning: Before attempting any of this backup the file /var/mobile/Library/ShopList/shoplist.data so you can restore your lists if things fail)
# su mobile
$ cd /Applications/ShopList.app/
$ ./import_export export /tmp/list.csv
then you can scp /tmp/list.csv to your desktop and edit it with your favorite text editor. Later you can import the list by doing:
$./import_export import /tmp/list.csv
Notice that:
- import OVERWRITES your lists. I'll have a merge option in the near future but that is not working so well yet
- ShopList should not be running during neither during import nor export.
A text file will look like:
A List
N,Item one, desc one
H,Other stuff, stuff description
N,Item two, desc two
Other List
N,More studd I need, desc
H,some more stuff I have,
Where the lines with no comas are lists and the lines with two commas are items in the list that is above them. The N means NEED the H means HAVE. It is not quite cvs compliant but I'll get there.