Re: Scripting graphics manipulations, improving speed overGraphicConverter 4
Re: Scripting graphics manipulations, improving speed overGraphicConverter 4
- Subject: Re: Scripting graphics manipulations, improving speed overGraphicConverter 4
- From: Victor Yee <email@hidden>
- Date: Thu, 22 Mar 2001 00:34:16 -0500
On Wed, 21 Mar 2001 19:25:42 -0500, Jeremy Reichman wrote,
>
---
>
tell application "ImageMagick/AE"
>
open "Macintosh HD:ImageMagick_AE Folder:Testfiles:leila.psd"
>
set imageRef to the result
>
>
copy (info for imageRef) to imageInfo
>
>
close imageRef
>
end tell
>
>
width of (imageInfo as record)
>
---
>
imageInfo by itself returns: {type:"PSD", width:174, height:352, xRes:0.0,
>
yRes:0.0, depth:8}
>
---
>
>
With that script, I get an error that AS can't get the width of the record.
>
Therefore, having the info locked in the record isn't helpful. Any ideas on
>
what I'm doing wrong? (I've not used records much, but according to the
>
ASLG, I'm pretty sure I'm doing the right thing to get data out of the
>
record structure.)
I don't have ImageMagick/AE, but try accessing the record within the tell block:
tell application "ImageMagick/AE"
open "Macintosh HD:ImageMagick_AE Folder:Testfiles:leila.psd"
set imageRef to the result
copy (info for imageRef) to imageInfo
close imageRef
width of imageInfo
end tell
Victor