• 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: Scripting graphics manipulations, improving speed overGraphicConverter 4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Creating folders (directories) without the Finder
  • Next by Date: Re: Re: Creating folders (directories) without the Finder
  • Previous by thread: Re: Creating folders (directories) without the Finder
  • Next by thread: In progress: Framework
  • Index(es):
    • Date
    • Thread