I can run the following code with Txstudio+Miktex 2.9+Windows 7 with no problem but the same code with Texstudio+MacTeX 2013+OSX Mavericks does not compile correctly. For both cases I call pdflatex and write18 is enabled. pdflatex command line from References is:
"/usr/texbin/pdflatex" -synctex=1 --shell-escape -interaction=nonstopmode %.tex
I think Texstudio under MacTeX and with auto-pst-pdf fails to initiate shell script for running latex+dvips+ps2pdf phase correctly. The code is given below:
This is a test. The following figure should be processed OK with PdfLaTeX. Works fine with Winedt and Texstudio under windows. Works fine with Texshop under OSX, but does not work with Texstudio under OSX. In all cases -shell-escape is enabled.