• 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: how to script resizing in Graphic Converter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to script resizing in Graphic Converter


  • Subject: Re: how to script resizing in Graphic Converter
  • From: Simon Forster <email@hidden>
  • Date: Fri, 06 Jul 2001 17:36:26 +0100

on 6/7/01 2:19 pm, Katherine Richmond at email@hidden
wrote:

> Can you help with this?

Having been for a (... cough... extended) lunch, I see that others have
beaten me to it. Anyhow, a snippet follows:

--Process the image in GraphicConverter
tell application "GraphicConverter"
activate

--As we refer to window 1, make sure no windows are open
if (count of window) > 0 then
close every window saving no
end if

open varImage

--Work out the image ratio
set varImageDimensions to (image dimension of window 1)
set varImageRatio to (item 1 of varImageDimensions) / (item 2 of
varImageDimensions)

--Is width or height the constraining factor? Process accordingly
if varImageRatio > 1.33 then
--Width is the constraining dimension

--Create Images
--To fit in 300x225
set varNewSize to {300}
set end of varNewSize to round (300 / (item 1 of varImageDimensions)) *
(item 2 of varImageDimensions)
set image dimension of window 1 to varNewSize
tell me to SaveImage("300x225", strImageName, strFolderName)

As you can see, only a snippet from a script but hopefully it helps a bit.
Contact me off list if you want more.

HTH - and if it doesn't have a good weekend regardless :-)

Simon Forster
________________________________________________
LDML Ltd, 4/5 Hazlitt Mews, London, W14 0JZ, UK
<tel int="+44 20 7602 9370" uk="020 7602 9370">
<fax int="+44 20 7371 6662" uk="020 7371 6662">
<mailto:email@hidden>
________________________________________________


  • Prev by Date: Re: Insert Pages Doesn't Work In Acrobat 5.0
  • Next by Date: Re: tell xxx to force quit
  • Previous by thread: Re: how to script resizing in Graphic Converter
  • Next by thread: Re: how to script resizing in Graphic Converter
  • Index(es):
    • Date
    • Thread