looking into generating some xml with attachments and the like. As i'd like to copy those into the appropriate brain folder, i was wondering if there's a best pratice on creating guids for inclusion in PB. So far i've been working with the "!name"-convention that guarantees that PB will create a new guid at that place in the xml.
But now i would like to:
- generate a guid for the thought to be included that is unique to all my brains called e.g. GUID (where GUID is meant to be a guid-format),
- create a folder called GUID underneath Files/ in the brain's folder
- copy attachments into it and
- generating the corresponding xml for inclusion into PB.
Any thoughts on this? Can I simple generate a guid w/ standard libraries/ algos and that's it?
ps: if anyone knows how to get shift-Enter (br instead of p w/i the forum editor) to work under mac, i'd appreciate. took me an hour alone to figure out a consistent pg-up|down/home/end use w/i vim under terminal. talking usability, the mac keyboard/std inputrc is a joke..
Java 1.6.0_14 w/ -Dawt.useSystemAAFontSettings=lcd -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dawt.toolkit=sun.awt.motif.MToolkit
Crunchbang Linux on an NC10