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


<<select a set of files in the Finder, then run this command
	<<the script creates a Frontier outline listing the full paths to all the selected files
	<<it's a simple script that shows you how to get at the selected files/folders

if Frontier.isRuntime () {
	scriptError ("This script uses features that are not available in Frontier Runtime.")};

on visit (path) {
	if firstline {
		op.setLineText (path); <<replace the blank line in all new outline windows
		firstline = false}
	else {
		op.insert (path, down)}; <<add a new line
	return (true)};

local (firstline = true);
local (adrOutline = @scratchpad.finderList);
Frontier.bringToFront ();
new (outlineType, adrOutline); <<create a new outline, overwrites any existing outline
target.set (adrOutline); <<all subsequent commands apply to this window
editMenu.setFont ("Geneva"); <<the outline is displayed in Geneva 9-point
editMenu.setFontSize (9);
edit (adrOutline); <<open the outline in a window so you can watch the script run
FinderMenu.visitPaths (@visit); <<process each of the files selected in the Finder
target.clear ()

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.