I'm trying to run a program (e.g. "/Applications/Safari.app") from node using child_process.execFile but it fails with the error:
"Command failed: execvp(): Permission denied"
It works well on Ubuntu and Windows, but on MacOS this issue appears. Am I missing something?
/Applications/Safari.app is actually a directory (application bundle), not an executable file.
I think the simplest solution would be to use /Applications/Safari.app/Contents/MacOS/Safari instead.