Re: Imagemagick
Re: Imagemagick
- Subject: Re: Imagemagick
- From: Axel Luttgens <email@hidden>
- Date: Wed, 28 Nov 2007 13:31:31 +0100
On 27/11/07 22:19, Fleisher, Ken wrote:
On
11/16/07 4:44 PM, "Axel Luttgens" <email@hidden> wrote:
In terminal, the correct data was
returned in the terminal window.
In AppleScript, I got the following error using the following syntax:
set bar to do shell script "/usr/ImageMagick-6.3.5/bin/identify -verbose
/Mac HD" & foo & " 2>&1"
"dyld: Library not loaded: /ImageMagick-6.3.5/lib/libMagick.10.dylib
Referenced from: /usr/ImageMagick-6.3.5/bin/identify
Reason: image not found"
When executed in Script Editor? Or otherwise?
Note that the dyld IS loaded because it
works from Terminal...
Yes, but is it a fat one? A ppc-only one? An Intel-only one?
It would be nice to ask the guy who installed ImageMagick how he
installed it: from source, from a binary release, by copying everything
from another box...
Why would it matter if it is a fat, ppc-only, intel-only install?
Because, it may matter depending on how you're running your script.
Hence the above question, reproduced hereafter:
When executed in Script Editor? Or otherwise?
A recent thread on this list has more info about those matters.
I
am only
doing this on one machine. If it runs from Terminal, then it should run
from
ApplesScript. Right?
No, not necessarily.
What has been said above is an example of how things may go wrong.
Moreover, _your_ shell environment is not _AppleScript's_ shell
environment.
The
processor didn't change while I was switching
applications! ;-)
I'm still unable to figure out how to get ImageMagick to return data in
AppleScript, but it is working in Terminal. I welcome any suggestions.
Thanks.
As far as the shell environment is concerned, could you execute
following command in Terminal:
set
and reproduce its output here?
(this assumes your shell is bash)
HTH,
Axel
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden