Execution of shell script in /usr/local/bin/ fails
<p>I try to execute the following shell command via applescript for fetching the cordova version:</p>

<pre><code>do shell script "cd /usr/local/bin/; cordova -v;"
</code></pre>

<p>If I use the same command in terminal it works, in AppleScript I get the error:</p>

<blockquote>
  <p>sh: cordova: command not found</p>
</blockquote>

<p>How can I solve the problem?</p>