zenity/internal/zenutil/osascripts/color.gojs
2022-03-27 00:05:52 +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)) + ')'}