This has been driving me crazy. I have a script which is an executable within /usr/local/bin/
, which works perfectly in Terminal, but I am unable to get Applescript to call it:
RunShell("estc R505")
on RunShell(oscript)
do shell script oscript
end RunShell
doesn't do a thing. I have tried giving the actual location /usr/local/bin/estc
instead, and calling it in bash with bash or sh... nothing works. It should return a text string, and works perfectly in terminal.
estc
, is it a binary executable or a script executable? If the latter and it's calling executables not in the defaultPATH
passed to thedo shell script
command, then the second portion of my answer should help. BTW What does theestc
command do?