do shell script error: "sh: line 1: <CommandName>: command not found"

I’m having trouble calling the shell command pdftotext with a “do shell script” step. I recently installed pdftotext in /usr/bin and it runs fine in Terminal. “/usr/bin” is listed in my $PATH variable.

However, AppleScript gives me the error: “sh: line 1: pdftotext: command not found”.

How can I get AppleScript to see commands in /usr/bin?

Bridge:

Have you tried typing the full path?

do shell script "/usr/bin/pdftotext xxxxxxx"

Yes, I should have mentioned that I have tried the full path, to no avail.

Whoops… my mistake. Thanks for pointing this out, Jacques.