One of 3B2's most flexible and powerful features is its scripting ability. It can be used to create scripts to handle specific applications or perform specific tasks. As well as its own internal scripts, 3B2 also includes full support for Perl scripts and Perl mini scripts.
Fully customisable through scripting, 3B2 enables the creation of powerful blackbox publishing applications for printing or electronic distribution.
Scripts can be programmed onto function keys, started with a macro, or even started automatically when a document is opened or closed. For more information about automation in 3B2 see the Automation topic.
Advent also offer advanced scripting and publishing solutions using 3B2. For more information on custom solutions and consultancy see the Solutions topic.
3B2 is controlled by its macros. They can be used as fast access codes to any of 3B2's functions. Executing a sequence of macros leads on, logically, to including these macros in a script or macro file which can be run with a single command. A script is made up of a sequence of macros. Creating a script is easy, making full use of 3B2's normal editing features.
The full power of 3B2 scripts is limited only by the imagination of the user, for this reason, we recommend that anything more than simple projects should be undertaken by a competent programmer.
However, there is no such limitation on the use of pre-written scripts. As mentioned previously, they can easily be started, and can be made to look like extensions to 3B2, for example, adding to or changing existing menus.
When writing a script you will need to know the macros to use. Every action in 3B2 will have a macro to match it, so provided that you know how to manually do something, then automation is possible. As you become familiar with 3B2's scripting language you will build up a library of useful routines which can be re-used in other projects.
Below is a list and description of the different types of script available within 3B2:
3B2's macros provide a programming language which can be used to create very sophisticated and flexible publishing solutions, particularly for large scale, high volume projects.
To the novice user, the macros are invisible, but in 3B2 every menu selection, keystroke, and even mouse movement generates internal macros. The more experienced user can issue these macros, plus many others, directly to 3B2's macro processor, significantly improving productivity and functionality. This in turn provides savings in time and cost.
Technical information on scripts is available to users in the technical documentation available from documentation.3b2.com
See also