The XMLEditor.app application bundle does not see the environment variables specified in your ~/.profile. You need to specify the environment variables needed by XMLEditor.app in ~/.MacOSX/environment.plist. See http://www.astro.washington.edu/owen/AquaEnvVar.html
However in your case, I would recommend to keep specifying "/usr/local/bin/gs" rather than "gs" in the <imageToolkit> plug-in. Thomas Dumm wrote: > If I use XMLmind through Java Webstart on a Mac, everything works smoothly, > except the imageviewport to render .eps images. The imageviewport works fine > with .eps images on windows. > > > *** I have GPL ghostscript 8.6.1 installed from: > http://www.openprinting.org/download/printdriver/macosx/gplgs-8.61-ub.dmg > and I verifierd, that gs executable. > > *** I have put into my include file the follwing: > > <imageToolkit name="Ghostscript"> > <description>Converts EPS and PDF graphics to PNG. Important: requires > Ghostscript 8+.</description> > > <converter> > <input extensions="eps pdf" magicStrings="%!PS %PDF"/> > <output extensions="png"/> > > <shell > command="gswin32c -q -dBATCH -dNOPAUSE -sDEVICE=png16m > -r96 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dEPSCrop > %A "-sOutputFile=%O" "%I"" > platform="Windows"/> > > <shell > command="gs -q -dBATCH -dNOPAUSE -sDEVICE=png16m > -r96 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 - dEPSCrop > %A "-sOutputFile=%O" "%I"" > platform="Mac"/> > > <shell > command="gs -q -dBATCH -dNOPAUSE -sDEVICE=png16m > -r96 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dEPSCrop > %A "-sOutputFile=%O" "%I"" > platform="Unix"/> > > <shell > command="gs -q -dBATCH -dNOPAUSE -sDEVICE=png16m > -r96 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 - dEPSCrop > %A "-sOutputFile=%O" "%I"" > platform="GenericUnix"/> > > </converter> > </imageToolkit> > > > *** I have checked, that gs is properly working by typing the follwing > command in a bash terminal. The test.png was properly generated: > gs -q -dBATCH -dNOPAUSE -sDEVICE=png16m -r96 -dTextAlphaBits=4 > -dGraphicsAlphaBits=4 -dEPSCrop -sOutputFile=test.png test.eps > > *** I have /usr/local/gs in my PATH by putting it into the .bash_profile. I > have also tested the imageviewport with a direct path to gs in the include > file, to exclude problems with the PATH variable: > /usr/local/bin/gs > Then XMLmind freezes while loding the document with a linked eps file. > > *** What I also testet was the follwing command: > /bin/sh gs -q -dBATCH -dNOPAUSE -sDEVICE=png16m -r96 -dTextAlphaBits=4 > -dGraphicsAlphaBits=4 -dEPSCrop -sOutputFile=test.png test.eps > I get the error message "cannot execute command" > PS: I played around: The error occurs on my Mac OS X, because "/bin/ > sh" does not find "gs" (ghostscript). > If I set "command="/usr/local/bin/gs -q -dBATCH -dNOPAUSE...." > everything works fine on my Mac. > If I set "command="gs -q -dBATCH -dNOPAUSE...." I get the error > message "/bin/sh: gs: command nor found" > > So my last question with the subject "imageviewport on mac os x" > reduces to: > How do I set the PATH on my Mac such that "gs" is found. In what file > and with what command? > I tried the file ".profile" with the command "set PATH=/usr/local/bin" > whithout success. >

