Re: Do Shell Script Bug (or feature)
Re: Do Shell Script Bug (or feature)
- Subject: Re: Do Shell Script Bug (or feature)
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 1 Jul 2005 17:47:04 -0400
AIUI, jhead won't be able to find jpegtran when called via "do shell
script" because /opt/local/bin/ isn't in the $PATH do shell script
inherits. Try passing -cmd "/opt/local/bin/jpegtran ..." to jhead
and see if that works.
On 7/1/05, Chris Norman <email@hidden> wrote:
The example commands given on the website for jhead look like this:
jhead -cmd "jpegtran -progressive &i &o" -r *.jpg
So the quotes are there so that the jhead command knows where the data for
-cmd argument is at (that is an educated guess).
Another example would be using jhead with mogirify command that is a part of
ImageMagick. That command looks like this:
jhead -cmd "mogrify -quality 80 &i" -model S100 -r *.jpg
I have not tried that command out either in the terminal or as a part of an
applescript.
And yes /opt/local/bin/jpegtran exists. I believe that it is the default
location that Darwinports installs it's binaries into.
I think you are on the same track that I am, that the argument that calls
jpegtran from within jhead is a bit odd, and it is probably what is causing
the issue.
Chris Norman
Technology Manager
Kane and Finkel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden