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

system.verbs.apps.FinderMenu.commands.backup.getBackupNumber

on getBackupNumber (f) { <<return 0 if it's not one of the backup folders
	<<if it is a backup folder, return the backup number
	
	if not file.isFolder (f) { <<not a folder, can't be a backup folder
		return (0)};
	
	local (x);
	x = file.fileFromPath (f); <<get the file name, pop off the path
	if string.patternMatch ("backup #", x) == 0 { <<it's not one of our backup folders
		return (0)}
	else {
		return (number (x - "backup #" - ":"))}}



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.