Pregunta

I'm trying to run a executable file using applescript in FileMaker.

I've been trying...

do shell script "./firstscript"

This results in the error "sh: ./firstscript: No such file or directory"


If I type './firstscript' directly in bash the file is properly being executed.

Any ideas on how I should be pointing to my executable file inside the apple script?

¿Fue útil?

Solución

You probably have the wrong working directory - use a full path instead, e.g.

do shell script "/path/to/firstscript"
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top