Sorry this note should have been referenced to this post >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".
This seems to be the same issue I had with running my scripts from PHP exec command. I had to put the full path to convert in my scripts. The way I handled it there was to include a variable near the top of the script to the full path to convert, which makes it easy for users to edit it for their full path to convert. Then in my script I referenced the variable full path to convert rather than convert. However, I have only done this in one script, color-converter.php which is located at http://www.imagemagick.org/contrib/color-converter.php and linked at http://www.imagemagick.org/script/color.php I will have to keep this in mind for future scripts, if this continues to be an issue or no one can inform me how to get around it for PHP or Applescript. Fred _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
