To recap, on older Mac OSes (pre-Lion) I used witango_cmd (by Robert Garcia of Big Head) as the link between Witango/Terascript and Imagemagick. I mostly use Imagemagick to resize uploaded images to suitable sizes, but will shortly be using it to create images for CAPTCHA.
The process is fairly straightforward. I define a var called 'appPath' and assign it the value of witango_cmdX: <@assign local$appPath "/file/path/to/witango_cmdX"> I then assign the command line to a var 'cmd': <@assign local$cmd '/opt/local/bin/convert "/file/path/to/source/file.jpg" -resize 200x200\> "/file/path/to/target/file.jpg"'> I then use the Command Line action to send these to witango_cmdX: Command: @@local$appPath Environment Variable: CMD @@local$cmd Now that witango_cmdX no longer runs in OSX Lion I am a bit stuck. Someone suggested using a BASH script in place of witango_cmdX. I tried writing the following to a text file: #!/bin/sh # resizeimage.sh -- shell script to resize image /opt/local/bin/convert $source $cmd $target And calling it with the Command Line action with the three Environment Variables: source /file/path/to/source/file.jpg cmd -resize 200x200\> target /file/path/to/target/file.jpg It doesn't work but without some sort of console or debug report I can't seem to see what I have wrong. Can anyone help with this, or point me in a direction where I can see what is going on when I run this TAF? Wayne Irvine ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body.
