Re: Resize scripting with photoshop 5.0
Re: Resize scripting with photoshop 5.0
- Subject: Re: Resize scripting with photoshop 5.0
- From: Michelle Steiner <email@hidden>
- Date: Thu, 4 Jan 2001 15:18:59 -0800
On 1/4/01 2:31 PM, harvey hillyer <email@hidden> wrote
>
I am taking photos on my Nikon coolpix & want to write an automating
>
script to open each image & resize them in photoshop 5.0.
Here's one that will work with Graphic Converter.
set dlgMsg to "Drop one or more picture files onto this droplet while
it's not running to make thumbnail files for them."
display dialog dlgMsg buttons {"OK"} with icon 1 default button 1
on open (filelist)
set thumbnailHeight to 128
-- change to suit whatever thumbnail size you want
set prefix to "prefix: "
--change to whatever prefix you want.
tell application "GraphicConverter"
repeat with loop from 1 to count the filelist
set fileToBeProcessed to item loop of the filelist
open fileToBeProcessed
set imageName to the name of the front window
set imageDimensions to the image dimension of the front window
set imageHeight to item 2 of the imageDimensions
set imageScale to thumbnailHeight / imageHeight
scale front window horizontal imageScale vertical imageScale
set savedName to prefix & imageName as text
save the front window in savedName
end repeat
end tell
end open
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------