dimensions 0 x 0?

This area contains the messages from the old Yahoo gcmac group after the port.
Post Reply
Maybell
Posts: 0
Joined: Tue Jan 05, 2010 4:48 pm

dimensions 0 x 0?

Post by Maybell »

I have an applescript that converts colored jpgs to b&w and rotates them. I want it to set the resolution to 200 dpi and I'd like the horizontal width to be 1391 and the vertical to be whatever it needs to be to remain in proportion to the original aspect ratio. When I get info on the resulting file I see the dimension indicated as 0 x 0 and when I open the file in Graphicconverter, it shows the resolution as 72.0x 72.0ppi. Here is the script I am using: on open fileList rotateImages(fileList) of me end open on rotateImages(fileList) set theFlag to true tell application "GraphicConverter" activate repeat with imageFile in fileList open imageFile as alias if theFlag then set mode of window 1 to 2 change resolution window 1 to {200, 200} rotate window 1 to angle 270 set theFlag to false else set mode of window 1 to 2 change resolution window 1 to {200, 200} rotate window 1 to angle 90 set theFlag to true end if save window 1 close window 1 end repeat end tell end rotateImages
Post Reply