2020-01-04 22:21:39 -05:00
|
|
|
var app = Application.currentApplication()
|
|
|
|
app.includeStandardAdditions = true
|
|
|
|
app.activate()
|
|
|
|
|
2021-03-03 11:05:11 -05:00
|
|
|
var res = app.{{.Operation}}({{json .Options}})
|
2020-01-04 22:21:39 -05:00
|
|
|
if (Array.isArray(res)) {
|
2020-01-21 07:03:58 -05:00
|
|
|
res.join({{json .Separator}})
|
2020-01-04 22:21:39 -05:00
|
|
|
} else {
|
2020-01-06 07:01:51 -05:00
|
|
|
res.toString()
|
2020-01-04 22:21:39 -05:00
|
|
|
}
|