From 1238e7949e714edf33bd1825b6c6aac339c3a65e Mon Sep 17 00:00:00 2001 From: yorch Date: Fri, 13 Mar 2015 15:50:17 -0700 Subject: [PATCH] added a tabbed_structure test --- yScripts/wip/tabbed_structure.jsx | 1 + 1 file changed, 1 insertion(+) create mode 100644 yScripts/wip/tabbed_structure.jsx diff --git a/yScripts/wip/tabbed_structure.jsx b/yScripts/wip/tabbed_structure.jsx new file mode 100644 index 0000000..cf84ad4 --- /dev/null +++ b/yScripts/wip/tabbed_structure.jsx @@ -0,0 +1 @@ +template_str="\ 01 MAIN\ 02 PComp\ 03 Source Layers\ 04 Movies\ 05 Other Projects\ 06 Audio\ 07 References\ "; var FolderStructure = function(){ var template = template_str.split('\n'); template = template.slice(1,template.length-1); var tab=" "; for(var i = 0; i < template.length; i++){ alert(template[i].split(tab)); this[template[i]]=''; } this.print = function(){ for (var i in this){ } }; }; fs = new FolderStructure() fs.print(); \ No newline at end of file