title: How can I call brew from an Applescript
body: <p>I'm trying to create a script to check if Homebrew is installed on any given mac and in case it is if it has a particular formula installed. I have the part that checks if brew is installed, but when I try to run brew list to see what packages are installed I get "Command not found" even though I can run the command in the Terminal fine. I'm using:</p>
  
  <pre><code>do shell script "brew list"
  </code></pre>
  
  <p>Is there any other way to run brew commands in Applescript?</p>