• 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: Jeremy Reichman <email@hidden>
  • Date: Sat, 24 Mar 2001 09:11:34 -0500

Bryan -

Actually, I found that if I put the "width of (imageInfo as record)" line
back inside the tell block for ImageMagick/AE, everything worked. I had this
inspiration (about the tell block) when I was trying to explain this on the
whiteboard of someone who absolutely didn't know a lick of AppleScript.
Funny how things hit you.

So "width" alone worked for me. I did not try "image width" as you
suggested.

With that command line above outside the tell block, "width" showed up as a
variable in my color-coding.


Now that I've gotten this working, I'm going to try replacing my
GraphicConverter routine in the image cataloging script I've built.


Thanks!


on 3/22/01 5:55 AM, Bryan at email@hidden wrote:

> Jeremy,
>
> the record returned is actually
> {type:"PSD", image width:174, image height:352, xRes:0.0, yRes:0.0, depth:8}
>
> so you need to ask for "image width" instead of "width", which is a system
> parameter.
>
> Bryan
>
>> 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}

--
Jeremy Reichman, aka "Jaharmi"
Software Specialist III (Mac OS) / Instructor
Customer Support Services
Information and Technology Services
Rochester Institute of Technology
Rochester, New York, USA

World Wide Web <http://www.rit.edu/~jjracc/>
Electronic mail <mailto:email@hidden>

Tip - The ITS computer buying guide is on-line at:
<http://www.rit.edu/~750www/Buying_Guide/>


References: 
 >Re: Scripting graphics manipulations, improving speed overGraphicConverter 4 (From: "Bryan" <email@hidden>)

  • Prev by Date: FMP5 - Graphics Problems on PC when created on MAC OS
  • Next by Date: Re: Scripting graphics manipulations, improving speed overGraphicConverter 4
  • Previous by thread: Re: Scripting graphics manipulations, improving speed overGraphicConverter 4
  • Next by thread: Script objects - yum
  • Index(es):
    • Date
    • Thread