zenity/internal/zenutil/osascripts/color.applescript
2020-12-11 18:28:16 +00:00

5 lines
No EOL
256 B
AppleScript

tell application (path to frontmost application as text)
activate
set c to choose color default color { {{index . 0}},{{index . 1}},{{index . 2}} }
"rgb(" & (item 1 of c) div 256 & "," & (item 2 of c) div 256 & "," & (item 3 of c) div 256 & ")"
end tell