Re: Scripting Photoshop- Applescript newbie
Re: Scripting Photoshop- Applescript newbie
- Subject: Re: Scripting Photoshop- Applescript newbie
- From: Pier Kuipers <email@hidden>
- Date: Wed, 29 Nov 2000 18:15:32 +0000
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 suppose you could do that at step 5, by adding some kind of
extension to the new filename.
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.
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
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users
--
---
Visual ID
A new concept in the storage
and distribution of corporate and
brand identity
http://www.visualid.com
Pier Kuipers
Visual ID
2 Whitefriars
Aungier Street
Dublin 2
Tel. +353 1 476 7059
Fax +353 1 478 1366
Mobile +353 87 294 3063
ISDN +353 1 602 0754