tell application \"System Events\"
set frontAppName to name of (first application process whose frontmost is true)
end tell
tell application frontAppName
choose color
end tell
It looks like you're new here. If you want to get involved, click one of these buttons!