exportedString() operator

Tinderbox Icon

The v4.0.0 operator exportedString() applies an export template to a note, returning the result as a string.

exportedString(what,templateFile)

what designates the note to be exported; it is commonly "this".

templateFile is an HTML export template or a text export template. If both an HTML export template and a text export template exists with the same name, the HTML template will be used.

Alternatively, the second argument may be an export template, which is then applied to the target note.

If the template name includes spaces or periods then enclose the name in double-quotes.

The exportedString() operator is especially useful in conjunction with the runCommand() operator. You can use exportedString() to assemble the input an external program will require, and then pass that input to the external program.

If you simply wish to transform a string or attribute value (e.g. $Name) into a 'safe' value for use as an HTML/XML element 'id' value, use idEncode().


Up: Actions & Rules
Previous: runCommand() operator  Next: eval() operator 

[Last updated: 3 Dec 2008]

Google search aTbRef for:  

Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]

Creative Commons License

Made with Tinderbox