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


<<this allows you to implement "Tiles-like" functionality using the Finder
	<<create a nested hierarchy of projects, each containing all the files you need to do a job
	<<put your cursor on one of the folders and select the Launch Everything command
	<<after a confirmation dialog, everything in the folder is launched

on visit (path) {
	if file.isAlias (path) {
		local (orig = file.followAlias (path));
		if file.isFolder (orig) {
			path = orig}};
	if not file.isFolder (path) {
		path = file.folderFromPath (path)};
	case dialog.yesNoCancel (“Launch every app & doc in "” + file.fileFromPath (path) + “"?”) {
		1 { <<yes
			on launchFolder (folder) {
				local (f);
				fileloop (f in folder) {
					if file.isAlias (path) {
						path = file.followAlias (path)};
					if file.isFolder (f) {
						launchFolder (f)}
					else {
						launch.anything (f)}}};
			launchFolder (path)};
		3 { <<cancel
			return (false)}};
	return (true)};

FinderMenu.visitPaths (@visit)

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.