global proc alienMacGyver() { if (`window -ex alienMacGyver`) deleteUI alienMacGyver; window -title "alien Mac Gyver 1.0" alienMacGyver; formLayout rcl1; separator -style "in" sep0; button -label "create a new note" -c writeNote createNote; textFieldGrp -l "note name" -w 280 notenameTF; separator -style "in" sep1; text -label "notes list" notelistT; textScrollList -numberOfRows 5 -width 200 -allowMultiSelection false -doubleClickCommand openFile -deleteKeyCommand deleteNote fileTextScrollList; separator -style "in" sep1a; button -label "update file notes" -c fillList fillListButton; button -label "notes directory" -c openDirectory openDir; separator -style "in" sep2; formLayout -e -af sep0 "top" 10 -af sep0 "left" 0 -af sep0 "right" 0 -af notenameTF "left" -75 -ac notenameTF "top" 10 sep0 -af createNote "left" 110 -ac createNote "top" 10 notenameTF -ac sep1 "top" 10 createNote -af sep1 "left" 0 -af sep1 "right" 0 -ac notelistT "top" 10 sep1 -af notelistT "left" 5 -af fileTextScrollList "left" 5 -ac fileTextScrollList "top" 10 notelistT -ac sep1a "top" 10 fileTextScrollList -af sep1a "left" 0 -af sep1a "right" 0 -af fillListButton "left" 5 -ac fillListButton "top" 10 sep1a -ac openDir "left" 33 fillListButton -ac openDir "top" 10 sep1a -ac sep2 "top" 10 openDir -af sep2 "left" 0 -af sep2 "right" 0 rcl1; showWindow alienMacGyver; fillList(); } global proc fillList() { string $scriptNodeList[] = `ls -type script`; int $i = 0; int $j = 0; int $check; textScrollList -e -ra fileTextScrollList; for ($i = 0;$i