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