Using Legato
The Legato Scripting Language and the IDE are included in all installations of GoFiler Complete. You may also download the Legato Interpreter for free as a standalone package below.
This package will allow you to run Legato scripts from a command line. Legato is free for development for personal or non-commercial use. By downloading Legato Basic, you agree to the Terms and Conditions of its use.
Download 32-bit Download 64-bitThis package will allow you to write, debug and run Legato scripts from an IDE. Legato is free for development for personal or non-commercial use. By downloading Legato IDE, you agree to the Terms and Conditions of its use.
Download 32-bit Download 64-bitSummary of Changes
Overview
– Added new API XML Parse Object. This object is a fast scaled down XML/HTML parser.
– Added API access to the application word dictionaries.
– Improvements to XDS workbook API functions. The Workbook Object now supports editing existing workbooks.
– Added API Log function to display a Log Object in a message box style dialog.
– Minor IDE improvements to Debug Window
– Added more clipboard application types.
– Improvements to file type tester and definitions.
– Corrected a resource leak in the Zip Object.
1.0 Legato IDE and Script Language
1.1 IDE Improvements
– Corrected an issue with the debug variable inspector giving an internal error when an empty table is inspected.
1.2 Existing API Changes and Improvements
– Added logic to allow an XDS workbook to be opened, altered, and then exported. Previously, the WorkbookExport function would only work on newly created workbooks.
– The SDK has been updated to include additional Clipboard CBA_ types, adding in new and revised types. The updates have also been reflected in the ClipboardGetApplication function.
– Added FT_XSL (XML Stylesheet or XSLT) as a file type with both an extension and signature test.
– Added ‘.xbrl’ for the XML file testing.
– Add the “period_type” key name and field to both the fact and context key names. This will explicitly indicate the type including “forever”.
– Added an option to provide raw HTML to the HTMLTableToTable function. This allows HTML code to be directly translated into a two-dimensional table array.
– Added error detail to the EncryptAsRC4 function to aid in debugging.
– Corrected a low-level memory leak problem in the Zip Object class. This would only cause problems on long and repeated calls (in excess of 10K compressions).
1.3 New API Functions
Dictionaries
– DictionaryIsWord — Tests a specific or all dictionaries for the specified word.
Log
– LogDisplayDialog — Displays the specified log as a message box style dialog.
Workbooks
– WorkbookDeleteSheet — Deletes a sheet from a specified position.
– WorkbookInsertSheet — Inserts a data sheet at a specified position.
XML Parse Object
– XMLParseCreate — Create an XML Parse Object.
– XMLParseGetAttributes — Returns a list or table of attributes contained with the last parsed item.
– XMLParseGetConcept — Returns the concept name from the last parsed item.
– XMLParseGetElement — Returns the element qname from the last parsed item.
– XMLParseGetEndX — Returns the zero-based ending X position of the last parsed item.
– XMLParseGetItem — Parses the next item and processes tab information as required.
– XMLParseGetPosition — Returns the zero-based starting and ending X/Y position of the last parsed item.
– XMLParseGetPrefix — Returns the element prefix as part of the qname for the last parsed item.
– XMLParseGetSpace — Returns any white space detected prior to the last item.
– XMLParseGetSpaceSize — Returns the number of white space characters prior to the parsed item.
– XMLParseGetStartX — Returns the zero-based starting X position of the last parsed item.
– XMLParseHasLeadingSpace — Returns a boolean value as to whether there was prior space.
– XMLParseIsComment — Tests whether the last item parsed was a comment.
– XMLParseIsDeclaration — Tests whether the last item parsed was a declaration.
– XMLParseIsSelfContained — Returns a boolean value as to whether the tag is self contained.
– XMLParseIsTag — Returns a boolean as to whether the item parsed was a tag.
– XMLParseLoadContent — Returns the content of data within tags or a CDATA object.
– XMLParseSetOptions — Sets XML parsing options.
– XMLParseSkippedComments — Tests whether comments were skipped to get to the current item.