\documentclass{article}
\usepackage{psfrag}
\usepackage[latex={-interaction=nonstopmode}]{auto-pst-pdf}
\begin{document}
\fbox{\psfragfig{example}}
\end{document}
