For some reason I'm still turning things into 3D models. What's with that?
In any case I'm relatively happy with where the spiral parsing is going. It's neato for no reason!
This is the Applescript that converts a Kineme plist to a JavaScript in TextWrangler...
tell application "TextWrangler"
activate
process lines containing text 1 of text document 1 matching string "" output options {copying to new document:true}
open find window
replace " " using "" searching in document 1 options {search mode:grep, starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false, showing results:no}
replace "" using "" searching in document 1 options {search mode:grep, starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false, showing results:no}
replace "\\t" using "" searching in document 1 options {search mode:grep, starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false, showing results:no}
replace "\\r" using ", " searching in document 1 options {search mode:grep, starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false, showing results:no}
replace "(\\s.+?\\s.+?\\s.+?\\s)" using "\\1\\r" searching in document 1 options {search mode:grep, starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false, showing results:no}
replace ", \\r" using "\\r" searching in document 1 options {search mode:grep, starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false, showing results:no}
set bounds of find window to {419, 469, 1045, 684}
close find window saving no
add prefix and suffix document 1 prefix "_Queue.push([" suffix "])"
replace "\\A^" using "_Queue = []
function (__structure Queue) main (__index Size)
{
var result = new Object();
" searching in document 1 options {search mode:grep, starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false, showing results:no}
replace "\\Z$" using "
if (_Queue.length > Size) _Queue.splice(0, _Queue.length-Size);
result.Queue = _Queue;
return result;
}" searching in document 1 options {search mode:grep, starting at top:true, wrap around:false, backwards:false, case sensitive:false, match words:false, extend selection:false, showing results:no}
end tell
Cool huh? I KNOW! Of course if I actually knew how to grep well it'd be, like, one step or something...In other computer-geek news there's this interesting open-source thingie called Field that, notwithstanding the nonsense above, is a little too code-based to be fun for me, but it goes in the same direction as Processing and Quartz Composer, with a kind of timeline that rolls over boxes of code that get run in sequence. The latest alpha didn't run on my laptop, but the last beta did.