Open mark1bean opened 3 years ago
I'm getting this error running the following JXA script in Finder. ('whoami' command is just for example.)
`function serviceStationDidSelect(targetedURL, selectedItemURLs, menuKind) {
var app = Application.currentApplication() app.includeStandardAdditions = true; try { var x = app.doShellScript('whoami'); app.displayDialog(x); } catch (e) { app.displayDialog(e.message); }
}`
I get that there are security concerns, so what is the right way of going about this?
I'm getting this error running the following JXA script in Finder. ('whoami' command is just for example.)
`function serviceStationDidSelect(targetedURL, selectedItemURLs, menuKind) {
}`
I get that there are security concerns, so what is the right way of going about this?