<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi I am LaTeX Mac user  and I also use a programming environment called revolution ( <a href="http://www.runrev.com/">http://www.runrev.com</a> ) which is roughly a successor to hypercard. This environment can send commands to the shell for execution. I want to use it to run pdflatex on a text file.<br><br>My Tex install is a 2008 release (the one that is currently available at <a href="http://www.tug.org/mactex/">http://www.tug.org/mactex/</a> ). System is 10.5.8 (not SL)<br><br>This revolution code works (i.e. I get the right pdf and a result string which is equal to the content of the log file). "--" indicates comments.<br><br>     set the shellcommand to "/bin/bash" -- this set the shell to bash as in terminal<br>     set the defaultfolder to theFolder -- this sets the folder where the command line will be executed<br><span class="Apple-tab-span" style="white-space: pre; ">      </span><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span>--- to the string in the variable "theFolder" -- like "cd"<br>     answer shell("/usr/local/texlive/2008/bin/universal-darwin/pdflatex" && last item of theFilePath)<br><span class="Apple-tab-span" style="white-space: pre; ">      </span><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span>-- this runs the string between parentheses in the previously defined shell and<br><span class="Apple-tab-span" style="white-space: pre; ">        </span><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span>-- displays the output of pdflatex<br><br>This also works with sh and tcsh.<br><br>However, if I replace<br><span class="Apple-tab-span" style="white-space: pre; ">       </span>"/usr/local/texlive/2008/bin/universal-darwin/pdflatex"<br>by<br><span class="Apple-tab-span" style="white-space: pre; ">  </span>"pdflatex"<br>in the previous code, I get the error string "pdflatex: Command not found.". Using sh or tcsh returns the same error.<br><br>I very much would like the second command ("pdflatex") to work, as it is rather universal (and it works in the terminal).<br><br>I know that this is a cross environment problem, but I suspect this could be better solved by mac TeX wise men rather than by the revolution community.<br><br>TIA<br><span class="Apple-tab-span" style="white-space: pre; "> </span>François<br></body></html>