>OK, I figured it out. Apparently Applescript cannot find convert >automatically (unless someone knows how to modify your environment to >tell it how) and I don't know how to do that. If you know, please >inform me. > >So to get around it. Go into the script and edit it to change convert >to fullpathto/convert, which in your case appears to be >/opt/local/bin/convert. > >I just edited my version with /usr/local/bin/convert everywhere in >the script (8 places) and it works fine now for me.
I looked further into this via googling "do shell script" see for example http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html where it says: Second, when you use just a command name instead of a complete path, the shell uses a list of directories (known as your PATH) to try and find the complete path to the command. For security and portability reasons, do shell script ignores the configuration files that an interactive shell would read, so you don't get the customizations you would have in Terminal. Use the full path to the command, for example, /sbin/ifconfig instead of just ifconfig. To find the full path in Terminal, say which command-name, for example, which ifconfig; to see the list of places do shell script will search, say do shell script "echo $PATH". also it say: A: do shell script inherits the environment of its parent process. Because of how scripting additions like do shell script work, the parent process is the application for the tell block surrounding the do shell script call. If there is no surrounding tell block, or if you tell me, the parent is the application running the script. see also http://developer.apple.com/mac/library/qa/qa2001/qa1067.html The bottom line is that I do not understand environment variables well enough to know how to set it so that Applescript can find the path to convert without putting the full path to convert into the script itself. Anyone who knows how to deal with this so that Applescript can find the full path to convert when running the script without modifying the script to put the full path to conver into the script, please let us know. I would really appreciate it. Fred _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
