Scripting Object Visibility?

 From:  shayno
11774.4 
Hi Michael
Is it possible to write a script to assign to a key say f5 f6 f7 etc that hides / unhides a colour from the styles colours ?
so with one keystroke they are hidden or shown
rather than mouse the command
cheers
shayne