Scripting

From FreeMind
Revision as of 08:52, 23 August 2010 by Dan Polansky (talk | contribs) (→‎Implementation: block expansion of the quot character entity in the VALUE)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

FreeMind 0.9.0 beta series has a scripting facility using Groovy.

To find out about it, see FreeMind 0.9.0: The New Features.

Menu

  • Tools > Script Editor

Keyboard

  • Alt + F8: run a script

Using

New scripts can be created using the script editor. Alternatively, you can plainly create an attribute whose name starts with "script" such as "script2"; such an attribute is understood by FreeMind to be a script.

Implementation

Scripts are stored in an attribute whose name reads "script" followed with a numeral, meaning in the attribute of the attribute function, not in the attribute of XML.

The script attributes are probably distinguished from non-script attributes by their starting with "script".

An example of storage in XML:

<node TEXT="hello">
<attribute NAME="script1" VALUE="=node.getNodeLevel() + &quot; &quot; + node.getText()"/>
</node>

See also