cd

Hi all,

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?

Thanks

Chris

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..

--
PB 5.5.2
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
Quote
zenrain
Yes, I did exactly the same thing using AHK for windows. I called a .dll to create a GUID so I could link attachments, notes, and the like to a thought that was created within the same script. However that was pre 5.5, and I had the time to update it to compensate for the revised XML structure.

My Mac understanding is much more basic at the moment. Would you share what you come up with?
Windows 7
J-1.6.0_22
--
OSX 10.6.3
Java SE 6
Quote

Add a Website Forum to your website.

Newsletter Signup  Newsletter Signup        Visit TheBrain Blog   Visit TheBrain Blog       Follow us on Twitter   Follow Us       Like Us on Facebook   Like Us         Circle Us on Google+  Circle Us         Watch Us on Youtube  Watch Us       

TheBrain Mind Map & Mindmapping Software     Download TheBrain Mind Mapping Software