Why OSX Texstudio cannot compile this?

I have tried the following MWE on Windows 7 and OSX (Mavericks) with different front ends. Windows Tex system is Miktex 2.9 and on OSX it is MacTeX 2013. In all cases PdfLaTeX is run and write18 (or shell escape) is enabled. The result:

1. Winedt+Miktex on windows, code compiles with no problem.
2. Texstudio+Miktex on windows, code compiles with no problem.
3. Texmaker+Miktex on windows, code compiles with no problem.
4. Texshop+MacTex on Mavericks, code compiles with no problem.
5. Texmaker+MacTeX on Mavericks, code compiles with no problem.
6. Texstudio+MacTeX on Mavericks, code does not compile correctly, the figure does not show and is replaced by an empty square.

My guess is that there is something wrong with the way auto-pst-pdf operates when it is called via Texstudio under OSX. Probably in the first run that latex+dvips+ps2pdf is called via shell.

Can anyone verify this odd behavior of Texstudio under OSX or suggest a solution? Here is the MWE:

\documentclass{article}
\usepackage{graphicx}
\usepackage{microtype}
\usepackage{auto-pst-pdf}
\begin{document}
This is a test.
\bigskip
\includegraphics[width=5in]{example-image-a.eps}
\end{document}

-
Of course we do not have that image? And please make up your mind, your list says it is TeXShop, but you keep talking about TeXStudio. –  daleif Dec 27 '13 at 15:23
@dalief Thanks. Question corrected, should read Texstudio as you found. The image is a standard test image that comes with MikTeX and MacTex and if one runs the program under any of these distributions will see that the image is found by the system –  per Dec 27 '13 at 15:44
Exactly how is it being compiled in Texstudio? Which options, are they exactly the same as in Texmaker? What does the .log file tell you? –  daleif Dec 27 '13 at 15:49
@dalief For both Texmaker and Texstudio (OSX) the command line (from preferences) is: "/usr/texbin/pdflatex" -synctex=1 --shell-escape -interaction=nonstopmode %.tex and the log file for Texstudio is: LaTeX Warning: File qq-pics.pdf' not found on input line 8. ! Package pdftex.def Error: File qq-pics.pdf' not found. See the pdftex.def package documentation for explanation. Type H <return> for immediate help. As you see, Texstudio under OSX fails to generate qq-pics.pdf file in the latex+dvips+ps2pdf phase (qq.tex is the name of the MWE file). –  per Dec 27 '13 at 15:58
Just for the fun of it, what happens if you run /usr/texbin/pdflatex -synctex=1 --shell-escape -interaction=nonstopmode qq.tex by hand in a shell? Just to make sure that this is the editors fault. Why are there -- for --shell -escape and not for the other options? –  daleif Dec 27 '13 at 16:11

\usepackage{auto-pst-pdf}
Omission of the .eps extension in the \includegraphics line also does no harm, as indicated at Package pdftex.def error PDF mode expected