Monday, November 08, 2010 at 12:00 AM.
scripting2Suite.editor.saveOutline
on saveOutline () { <<Changes <<6/13/10; 6:20:40 PM by DW <<Maintain a local backup copy of outlines. <<6/11/10; 10:43:42 PM by DW <<Created. local (adrdata = scripting2suite.init ()); local (adroutline = address (window.frontmost ())); local (username = adrdata^.editor.prefs.username); local (password = string (adrdata^.editor.prefs.password)); local (server = string (adrdata^.editor.prefs.server)); local (opmltext = op.outlinetoxml (adroutline), url); window.attributes.getone ("outlineUrl", @url, adroutline); //6/12/10 by DW [server].scripting2.saveOutline (username, password, url, opmltext); bundle { //local backup copy, 6/13/10 by DW scripting2Suite.editor.backupOutline (string.lastfield (url, "/"), opmltext)}; speaker.beep ()}; bundle { //test code saveOutline ()}
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.