Mahogany has an embedded Python interpreter, if compiled with Python support enabled. Python is an object-oriented script language which can be used to write scripts to be executed by Mahogany or even to extend Mahogany's functionality. Python scripts have full access to all internal Mahogany data structures and objects.
A number of user definable callback functions are available. Scripts have access to most objects living in Mahogany. Scripting can be disabled in the Preferences dialog (see 1.7.2).
Currently the scripting support is quite basic. If you are interested in writing scripts and need additional callbacks or support for them within Mahogany, please get in touch with the developers who will be happy to add it.