문제

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?

도움이 되었습니까?

해결책

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

do shell script "/path/to/firstscript"
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top