home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1998 - Modelworks Software
- // @Modified build 247 cm19981219 - thanks to Robert Zahler
-
- /**
- @Tool: editRecentProjects~displays a choose list of the projects
- in the Recent Project list. Uncheck the items to remove projects
- from the Recent Projects list.
- @EndTool:
- @Summary: editRecentProjects~let you remove files from the Recent Projects list
- */
-
- var gRecentFilesMap = getMapFile("RecentFiles");
- var gOutput = getOutput();
-
- function DoCommand(commandID, menuIndex)
- {
- var projectList = gRecentFilesMap.lookup("RecentProjectList", null);
- if (projectList)
- {
- var selectedList = newList();
- var position = projectList.getHeadPosition();
- while (position && position.valid)
- {
- var path = projectList.getNext(position);
- selectedList.addTail(true);
- }
-
- var resultList = chooseOptions("Recent Project List",
- "Edit Recent Project List", projectList, selectedList);
-
- if (resultList)
- {
- var projectPosition = projectList.getHeadPosition();
- var resultPosition = resultList.getHeadPosition();
- while (projectPosition.valid && resultPosition.valid)
- {
- var currentPosition = projectPosition.clone();
- var path = projectList.getNext(projectPosition); //cm19981219
- var keep = resultList.getNext(resultPosition);
- if (!keep)
- {
- projectList.removeAt(currentPosition);
- }
- }
- gRecentFilesMap.forceUpdate();
- }
- }
- }
-
-
- !!/Script
-
-