ImageMagick Problem
ImageMagick Problem
- Subject: ImageMagick Problem
- From: "Fleisher, Ken" <email@hidden>
- Date: Wed, 26 Sep 2007 16:12:02 -0400
- Thread-topic: ImageMagick Problem
Title: ImageMagick Problem
Hello. I’m trying to use ImageMagick from AppleScript for the first time and I’m not terribly UNIX savvy. I’m hoping someone can tell me what is wrong with this script and what the error means.
-- Set up properties likely to be used in multiple commands
property pathToImageMagickLibraries : "export DYLD_LIBRARY_PATH=/usr/ImageMagick-6.3.5/lib;"
property pathToImageMagickCommands : "/usr/ImageMagick-6.3.5/bin/"
-- Build the shell command
set cmd to pathToImageMagickLibraries & pathToImageMagickCommands
set cmd to cmd & "identify -verbose "
set cmd to cmd & "Users/k-fleisher/Desktop/test/*.tif"
--display dialog cmd
-- Execute the command
do shell script cmd
-- Result
tell current application
do shell script "export DYLD_LIBRARY_PATH=/usr/ImageMagick-6.3.5/lib;/usr/ImageMagick-6.3.5/bin/identify -verbose Users/k-fleisher/Desktop/test/*.tif"
"identify: no decode delegate for this image format `Users/k-fleisher/Desktop/test/242-142.tif'."
When I run the script from terminal, I get the following:
FleisherK:~ k-fleisher$ identify Desktop/test/*.tif
identify: Not a TIFF file, bad version number 10752 (0x2a00). `Desktop/test/242-142.tif'.
Any help will be very much appreciated. Thanks!
--
Ken Fleisher
Photographer
Imaging & Visual Services
National Gallery of Art
Washington, D.C.
Phone: (202) 712-7471
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden