• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Do Shell Script Bug (or feature)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Do Shell Script Bug (or feature) (From: Christopher Nebel <email@hidden>)
 >Re: Do Shell Script Bug (or feature) (From: Chris Norman <email@hidden>)

  • Prev by Date: Re: Do Shell Script Bug (or feature)
  • Next by Date: Re: path to as string
  • Previous by thread: Re: Do Shell Script Bug (or feature)
  • Next by thread: Testing to see if a string is a valid path
  • Index(es):
    • Date
    • Thread