Monday, November 08, 2010 at 12:01 AM.

system.verbs.apps.FinderMenu.commands.backup.openBackupFolder

FinderMenu.init ();
local (backupFolder = user.FinderMenu.finderBackupFolder);
local (somethingOpened = false);

on visit (sourcePath) {
	local (destPath = backupFolder + file.fileFromPath (sourcePath));
	if file.exists (destPath) and file.isFolder (destPath) {
		file.openFolder (destPath);
		somethingOpened = true};
	return (true)};

if (backupFolder == "") or (not file.exists (backupFolder)) {
	scriptError ("Use the Set Backup Path command to set your backup folder.")};
FinderMenu.visitPaths (@visit);
if not somethingOpened {
	file.openFolder (backupFolder)}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.