9 lines
221 B
Plaintext
9 lines
221 B
Plaintext
var app = Application.currentApplication()
|
|
app.includeStandardAdditions = true
|
|
app.activate()
|
|
|
|
var opts = {}
|
|
opts.defaultColor = {{json .}}
|
|
|
|
var res = app.chooseColor(opts)
|
|
'rgb(' + res.map(x => Math.round(x * 255)) + ')' |