Running Templates
A number of ways exist to run a Binary Template. The easiest is simply to open a file and if 010 Editor has a Binary Templates installed for that type of file the Template will be run automatically. 010 Editor comes preinstalled with Binary Templates for BMP, WAV, and ZIP files but other Templates can be installed (see Template Options for more information). Templates can also be run by clicking on the name of a Template in the 'Templates' menu (Templates can be installed on this menu using the Template Options dialog).
Another method of running Binary Templates is to use the Templates drop-down list in the Tool Bar as shown above right. This drop-down list has two different modes depending upon what type of file is being edited. While editing a regular file (not a Template) select the Template to run on the current file from the Templates drop-down list and click the Run icon (with the green arrow) or press F5 to execute that Template. The drop-down list displays all files on the 'Templates' menu plus all Templates that are currently open.
However, when editing a Template (the Edit As drop-down list will display Template when a template is active) the Template drop-down list will appear with a yellow background as shown above. Now the Template drop-down list displays all currently open files. Select a file from the list and click the Run icon or press F5 to run the current Template on that file.
Templates can also be run using the Command Line. Once a Template has been run the Working with Template Results help topic describes how to use the results.
Running Scripts
Similar to running Templates, Scripts can be run by clicking on a script name in the 'Scripts' menu (see Script Options for information on placing a Script on this menu and a list of all available scripts). Also, through the same dialog Scripts can be set to run when a certain file type is opened or can be set to run automatically on application startup or shutdown.
Alternately, Scripts can be run using the Scripts drop-down list in the Tool Bar as shown above left. This drop-down list has two different modes depending upon what type of file is currently being editing. If a regular file (not a script) is being edited, select a Script to execute from the drop-down list (e.g. 'IsASCII') and click the Run button (with the green arrow) or press F7 to run the Script. The Script drop-down list displays all Scripts on the 'Scripts' menu plus all Scripts currently open in the interface.
If the current file being edited is a Script (the Edit As drop-down list will display Script) the functionality of the Scripts drop-down list changes and the background color of the list changes to yellow (see the diagram above). Now the Scripts drop-down list displays all files that are currently open in the interface. Select a file from the list and click the Run icon (with the green arrow) or press F7 to run the current Script on the selected file.
Scripts can be run using the Command Line as well. After a Script has been run (and assuming the Script is loaded in the interface) select the Script and click on the Variables tab of the Inspector to view the variables created by the Script.
|