Last update: Wed, Apr 18, 2012 at 12:16 PM.
Frontier secrets
  • These are things I have to figure out every time.
  • Maybe if I put them here I will remember to look here? :-)
    • If you want to add commands to your own personal right-click menu, add them to user.tools.menus.rightclickmenu.
    • Not sure how a tool or other code can do it. I seem to remember that this is not provided for (yet).
    • I want to be able to set attributes on the newly created headline, based on where in the outline is being inserted.
    • The best way to do this is to create a callback that runs when the user inserts a new headline into an outline. You can put the script in user.callbacks.opinsert. An example of such a script is at opmlEditor.worldOutline.opInsertCallback.
    • When I click on a link that returns OPML text, it tries to open it in the OPML Editor, which is good. But it opens it as plain text, which is not good. Where do I go to fix that?
    • Answer: Jump to Frontier.finder2Click.
    • The commands in the File menu are implemented as scripts that live in opml.root.
    • The script for Open URL is at Frontier.tools.windowTypes.commands.openUrl.
    • A lot of the other commands, if not all of them are in Frontier.tools.windowTypes.commands.
    • I keep having to re-figure this one out, so I wrote a little howto.