• 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
CS3 resize problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CS3 resize problem


  • Subject: CS3 resize problem
  • From: Jay Louvion <email@hidden>
  • Date: Mon, 19 Feb 2007 02:59:46 +0100
  • Thread-topic: CS3 resize problem

Title: CS3 resize problem

Hi all,

Has anyone installed the CS3 beta and played around with it?

When prompting a resize, the result OMM, whatever the size in pixels specified, is always a 1 pixel resize.

This is the subroutine I used with CS2 and that appears broken with CS3:

on ResizeImages(imagefile, imageFolder)
    set ImageFileName to name of imagefile
   tell application "Adobe Photoshop CS3"
        activate
       {display dialogs:error dialogs}
        open (imagefile as alias)
        set docRef to current document
       flatten docRef
       set {DocWidth, DocHeight} to {width of docRef, height of docRef}
        change mode of docRef to RGB
       resize image docRef width 600 as pixels --returns a 1 pixel image
       set {NewDocWidth, newDocHeight} to {(width of docRef as pixels) as real, (height of docRef as pixels) as real}
        resize canvas docRef width (NewDocWidth + 2 as pixels) height (newDocHeight + 2 as pixels)
        set SmallImage to ((imageFolder as text) & ("LD_" & ImageFileName)) as string
       save docRef in file SmallImage as JPEG with icon
       set LD_comment to text returned of (display dialog "Title of this picture ?" default answer ImageFileName)
        close current document
   end tell
   return {SmallImage, LD_comment}
end ResizeImages

And the funny thing is when I want to address another install of Photoshop (CS2, for example), the Editor times out before compiling.

Any ideas ?

Best,

j.

Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva

T+4122 840 3272
F+4122 840 3271

www.studiocasagrande.com

P Please consider the environment before printing this email.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Puzzling display dialog
  • Next by Date: Re: When was the computer turned off?
  • Previous by thread: Re: Puzzling display dialog
  • Next by thread: Converting Pounds Prices to Euro Prices
  • Index(es):
    • Date
    • Thread