When I use “do shell script” command in applescript to launch an application i get command not found errors for the application but when i run the exact same command in my shell it works fine? Any ideas?
all the shell script is is a command to open a program called paraprof which is in the permanent PATH…well i can type paraprof in the shell and the program opens, however, when i go to applescript and type do shell script “paraprof” i get a command not found error.
also, i recently restored my /etc/profile from a backup after making some changes to it, it is back to the original now, but do i need to do anything to get programs outside of the shell to associate with the profile again?
“do shell script”, uses /bin/sh, not /bin/bash, and will not use your .bash_profile.
if you don’t code your shell script to use a specific path, you cannot predict what the results of your script will be. will it use a builtin? will it use another, more limited version of a program? will it not find the program? here’s what Apple has to say: