Tuesday, August 18, 2009 at 7:54 PM.

howtoSuite.menuCommands.openDocument

on openDocument (path=nil) {
	<<Changes
		<<8/15/08; 7:04:27 AM by DW
			<<Make sure the path ends with ".opml".
		<<8/13/08; 9:09:06 AM by DW
			<<Take an optional param, the path to the document.
		<<8/6/08; 1:12:02 PM by DW
			<<Validate the user before putting up the dialog asking for the path.
		<<7/31/08; 10:50:23 AM by DW
			<<Created. 
	howtoSuite.init ();
	if howtoSuite.validateUser ("open a document") {
		if path == nil {
			path = user.howto.prefs.client.lastPath};
		if dialog.ask ("Path for howto outline to open?", @path) {
			if not (string.lower (path) endswith ".opml") {
				path = path + ".opml"};
			user.howto.prefs.client.lastPath = path;
			howToSuite.openDocument (user.howto.prefs.client.lastPath)}}};
bundle { //test code
	openDocument ()}
	<<openDocument ("bum/fuq/egypt.opml")



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.