I have a good number of ColourNotes in my scripts, and while they work fine in the output they aren't showing up in the html log. I could write a wrapper for ColourNote and call WriteLog, but it'd be a major pain to generate the HTML codes for the colour by hand. Normal Notes log fine, and the ColourNotes also work fine if using the 'Copy as HTML' feature.
Is there a better way to get this working - preferably so the final log looks the same as the output?
I don't seem to be able to reproduce this. With "logging notes" enabled in the logging preferences, my colour notes are appearing. What version are you using?
Correction: Looking at the script I seem to be using ColourTell, not ColourNote. Slight difference ;)
It's version 3.66. In logging preferences I have 'Log Output', 'Log Commands', 'Log Notes', 'HTML', and 'Colour' checked but not 'Raw'. Normal notes show up fine
OK, ColourTell does a partial line (that is, doesn't terminate it), so can you clarify how you eventually terminate the line which you are doing ColourTell to?
Preferably you should follow the last ColourTell by a simple Note (""), which simply terminates the line (starts a new one).
I was simply not terminating the line, since in the place it was firing it the server was always due to send a blank line. With a call to Note("") after the ColourTell()s it seems to work all right. Strange that it looks fine in output even without the Note("").
So, in one sense, the problem is resolved? However it seems a bug of some sort. The documentation for ColourNote says the extra Note isn't really required, however it appears it is.