Wayne, I am pretty sure this could be done in lion with a simple bash script, and witango_cmd would not even be needed. I feel bad, I couldn't find the source to update. I would be willing to help but you would need to test. I don't have os x lion running anywhere. I guess I can build a VM real quick, with vmware. What is the best version of OS X to install terra script on? So I don't have to jump through any hoops?
This should be fairly straight forward for windows batch also. the main reason that I didn't do it that way before, is witango had some horrible crashing problems with external apps and I made witango_cmd detect certain issues and exit instead of hanging. Hopefully, that isn't necessary anymore. -- Robert Garcia BigHead Technology 15520 Coutolenc Rd Magalia, Ca 95954 ph: 530.645.4040 x222 fax: 530.645.4040 [email protected] (mailto:[email protected]) - http://bighead.net/ On Wednesday, April 11, 2012 at 6:48 PM, Wayne Irvine wrote: > 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 (http://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] (mailto:[email protected]) with "unsubscribe > terascript-talk" in the body. ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body.
