Executing shell command
This Dialog allows to apply shell commands to selected text regions and object IDs.
It provides one way of linking other programs.
The list of shell scripts can be customizable.
The user can chose the shell script to be applied to a certain text-string from a browsable
tree.
This hierarchical tree contains the menu and sub-menus and shell-scripts and Web addresses.
The list of shell-scripts is customizable at run-time.
Alternatively, the program option "-customizeAddScriptByRegex" can be used to specify a file with shell-scripts.
Example:
demo\Example google%09.*%09http://www.google.com/search?q=*
demo\Example: Matches starting with M%09^M.*$%09 echo starts with letter M *
Each line associates a shell script (3rd column) to regular expression (2nd column).
The asterisk is replaced by the text.
The shell script is presented to the user as a menu item.
The menu item path is given in the 1st column with back-slash being the separator.
If the value in the 3rd column starts with http://, then it is not taken as a shell script but as a Web address.