• 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: Akua Sweets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Akua Sweets


  • Subject: Re: Akua Sweets
  • From: Andy Wylie <email@hidden>
  • Date: Thu, 12 Jul 2001 00:53:03 +1200

on 11/7/01 11:52 pm, Simon Forster at email@hidden wrote:

> OK. After prompting from someone on the list, I've downloaded Akua Sweets.
> On first look, it's a mess. On second look it's a mess. On third look it's
> still a mess but I can see that we have some mighty powerful commands in
> here.

Au contrare, it's just BIG. I played with it when there was talk of doing it
with GC on the list recently and got this far in 15 minutes so it's crude
but has the commands you require, it even has a comment ;-)

--scale image Akua

set x to the image from (choose file)
set {picBnds, img_res} to {picture bounds of (the picture info for x),
picture resolution's item 1 of (the picture info for x)}
display dialog "Resolution is " & img_res & " DPI , change output?" buttons
{"Cancel", "Change", "OK"} default button 2 with icon 1
set butRet to button returned of result
if butRet = "Change" then
set img_res to choose from list {72, 144, 288, 576, 1152} with prompt
"The image is " & img_res --default items {"Current Res ", img_res}
if result is false then return
end if
set chosen_scale to 0 + (choose from list {2.0, 1.75, 1.5, 1.25, 0.875,
0.75, 0.625, 0.5, 0.375, 0.25, 0.125} with prompt "" & picBnds default items
0.5)
if result is false then return error -128
set new_scale to ({0, 0, round (picBnds's item 3) * chosen_scale, round
(picBnds's item 4) * chosen_scale})
set x to scale image x to new_scale at img_res
store image x

_________________________HTH Andy


References: 
 >Akua Sweets (From: Simon Forster <email@hidden>)

  • Prev by Date: Re: Akua Sweets
  • Next by Date: Re: Snippet to remove an item from a list
  • Previous by thread: Re: Akua Sweets
  • Next by thread: Re: how to cut/remove/move item from list
  • Index(es):
    • Date
    • Thread