Re: Scripting Photoshop- Applescript newbie
Re: Scripting Photoshop- Applescript newbie
- Subject: Re: Scripting Photoshop- Applescript newbie
- From: Carl West <email@hidden>
- Date: Wed, 29 Nov 2000 11:56:20 -0500
- Organization: VPG Integrated Media
Pier Kuipers wrote:
>
>
Photoscripter doesn't come cheap, although I'll probably have to get
>
it myself sometime soon. You CAN use Photoshop actions with a bit of
>
work-around:
>
>
1. Take a sample file and call it "Photoshop Temp". put it in a
>
specific location such as the desktop. Write a Photoshop action that
>
performs the resizing and saves the file, replacing the existing one.
>
The Save command in the action will look something like "Save as ...
>
In: Macintosh HD:Desktop Folder:"
>
2. Get your script to take each file one by one. Take the first file
>
from the list, store the name and location in two variables and
>
rename it to "Photoshop Temp". Move it to the desktop.
>
3. Get the script to perform the action:
>
Tell application "Adobe Photoshop"
>
do script "My Script"
>
end tell
>
4. You may need the script to pause for a few seconds to allow the
>
finder to register the modified file.
>
5. The script then moves the modified file back to its original
>
location and renames it back to the name using the previously stored
>
variables.
>
>
Works like a dream for me!
>
Cheers,
>
Pier.
>
> Hey,
>
> Im writing a script that will take a folder of 75MB images and
resize them
>
> to 60MB, 35MB, 600k and 300k, storing all of these in seperate folders.
Nice. I'm filing this one away. Thankyou.
Wouldn't the script also need to rename the files that the Photoshop
action generated?
--
Carl West email@hidden
617.262.8830 x246
I have no superfluous leisure; my stay must be
stolen out of other affairs; but I will attend you awhile.
- Isabella, Measure for Measure, Act 3 Scene 1