var TextEdit = Application ( "TextEdit" ) ; var doc = TextEdit . documents [ 0 ] ; var c = doc . text . characters [ 0 ] . color ( ) ; var r = c . red ; var g = c . green ; var b = c . blue ; var txt = r + "\n" + g + "\n" + b ; TextEdit . includeStandardAdditions = true ; TextEdit . displayAlert ( txt ) ;