Monday, November 08, 2010 at 12:05 AM.
system.verbs.builtins.radio.outliner.openMyOutline
<<Changes <<3/31/02; 3:56:40 AM by JES <<Ensure that a #prefs.txt file exists with a #flRender false directive. <<3/26/02; 5:53:33 PM by JES <<Add an adrCloud attribute to the outline window after it's opened. <<3/25/02; 11:20:24 PM by JES <<Call through radio.outliner.getMyOutlineFile to get the path to my outline. <<3/22/02; 4:47:33 PM by JES <<Added a call to file.sureFilePath to make sure the folder exists. local (adrdata = radio.outliner.init ()); //set up user.radio.outliner local (f = radio.outliner.getMyOutlineFile ()); local (folder = file.folderFromPath (f)); bundle { //make sure #prefs.txt with #flRender false exists local (prefsFile = folder + "#prefs.txt"); if not file.exists (prefsFile) { file.sureFilePath (prefsFile); file.writeTextFile (prefsFile, "#flRender false")}}; if not file.exists (f) { local (lo); new (outlinetype, @lo); file.sureFilePath (f); file.writewholefile (f, op.outlinetoxml (@lo))}; Frontier.tools.windowTypes.commands.open (f); //was fileMenu.open, but that runs in another thread local (adrwindow = window.frontmost ()); window.attributes.setOne ("adrCloud", @user.radio.prefs.rssCloud, adrwindow); window.attributes.setOne ("requestNotificationProcedure", "xmlStorageSystem.requestNotification", adrwindow)
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.