mrsandbags
So I had the need to create child thoughts 1…50 to add. After typing "1;2;3;4;5;6;7;8" I realised I didn't want to type any more and reached for Ruby. Also lucky I did because I'd forgotten the comma-trick.

Here is a quick script I used to generate the child thoughts to add:


(1..50).to_ a.map  {|n| ",#{n}"}.join(";")


If you are on a Mac you can open a terminal, and do:


irb
(1..50).to_ a.map  {|n| ",#{n}"}.join(";")


(hitting Return between 'irb' and the next line. Irb is the Ruby languages interactive mode. Just hit ctrl+d when you're done with it).

and you will get:

Quote:
,1;,2;,3;,4;,5;,6;,7;,8;,9;,10;,11;,12;,13;,14;,15;,16;,17;,18;,19;,20;,21;,22;,23;,24;,25;,26;,27;,28;,29;,30;,31;,32;,33;,34;,35;,36;,37;,38;,39;,40;,41;,42;,43;,44;,45;,46;,47;,48;,49;,50


in the terminal, ready for you to copy & paste into the create-thought dialog in Brain.

I also needed a certain range of years, so:


irb
(2001..2017).to_a.select.with_index {|_,i| i.even?}.map {|n| ",#{n}"}.join(";")


gave me:

Quote:
,2001;,2003;,2005;,2007;,2009;,2011;,2013;,2015;,2017


It may be that Brain has some more semi-undocumented tricks for making this kind of task easier. If not a little bit of poking about and c&p paste in the Terminal could help ease typing lots of fiddly things.

Hope this maybe helps someone… if anyone really wants to understand what's going on there because it might be useful to them I'd be happy to walk them through it.

Matt
MOWER/VALDEMARIN
Experts at creating value by sharpening purpose, stimulating thinking, sharing insight, and finding hidden opportunities for you
tel +44 797 707 6709  ·  skype: matt.mower ·   http://mwrvld.com/  ·  https://uk.linkedin.com/in/mattmower

TheBrain v9.0.245.0 | macOS 10.12.6 | MacBook Pro 13,1 (late 2016) 2.4Gz i7, 16GB RAM, Intel Iris 540 GPU


Quote
shatcher
Matt,

Thank you for that. I personally love scripting any type of tedious task, even when the script takes longer to write than the task would have taken to complete. ðŸ˜„ 

Cheers, Sean
Quote

Newsletter Signup  Newsletter        Visit TheBrain Blog   Blog       Follow us on Twitter   Twitter       Like Us on Facebook   Facebook         Watch Us on Youtube  YouTube       

TheBrain Mind Map & Mindmapping Software     Download TheBrain Mind Mapping Software