zenity/internal/zenutil/osascripts/color.gojs
2021-02-19 17:46:47 +00:00

6 lines
No EOL
199 B
Text

var app = Application.currentApplication()
app.includeStandardAdditions = true
app.activate()
var res = app.chooseColor({defaultColor: {{json .}}})
{"rgb(" + res.map(x => Math.round(x * 255)) + ")"}