Edit

SetSidebarColour (colour)

Result Type:  none

Definition:  Sets the sidebar colour (for all windows that have them), to a desaturated version of the supplied colour. The colour can either be a number in the range 0..7 in which case it is regarded as one of the standard MoneyWorks colours (0 = the default sidebar colour, 1 = orange, 2 = red, 3 = magenta, 4 = cyan, 5 = blue, 6 = green, 7 = brown). If the colour is a number greater than 7 it is assumed to be a 24-bit rgb value. The highlight colour in the sidebar will be the actual colour value supplied.

Rationale:  To customise the sidebar colour on a document-by-document basis (to make it easier to discern which of several companies you are working in). Just add a simple 3 line script to each document, using a unique colour.

Example: 

on Load
    SetSidebarColour(#ff0000)
end

Availability:  available within MWScript handlers.