@include "_GetDirectory.epm"; #this function will return the project name and set an environment variable to speed up future calls sub getProjName(OUT string $projName){ $projName = "unknown"; @record on; if(`lpgetenv -option PROJECTNAME`){ #variable already set. that was easy $projName = GetCmdData("value"); return true; } string $resourceDir; _GetLpResourcesDirectory($resourceDir); string $toParse = split("\\",$resourceDir); string $prepsDir = "$toParse[0]\\$toParse[1]\\Preps"; `local dir $prepsDir\\*`; string $folderList = GetCmdData("name"); bool $folderProperty = GetCmdData("isDir"); @record off; @echo on; string $foo; int $i = 0; int $x = 0; while($x1){ #not sure why they have 2, but we'll accomodate string $msg = "Select project name:"; $i=0; while($i