Photoshop Save as GIF with flatten

I have a script which is supposed:
1) Save a Photoshop file as GIF
2) Change the color of some text in a text layer
3) Save another copy as GIF

Here's what I have so far:
save current document in filelocation & BaseName & "_ov" as CompuServe GIF appending lowercase extension with copying
set stroke color of text object of artLayerRef to {class:RGB color, red:0, green:0, blue:204}
save current document in filelocation & BaseName as CompuServe GIF appending lowercase extension with copying

It's fine except the save as GIF parts make a dialog box pop up asking if I want to flatten the image. Is there a command I can put in the save code that will save the file flattened? Or, is there a way to undo flattening (using the history or undo command), so that I can flatten the file, save as GIF, undo flatten, change the text layer, flatten, save as GIF?

iMac 1.6 GHz, Mac OS 9.2.x

Posted on Mar 6, 2006 3:22 PM

Reply
4 replies

Mar 14, 2006 5:53 AM in response to Joe Sixpack1

Hello,

Often when working with Photoshop users recommend creating a Photoshop action that will do what you want and then calling the action from Applescript.

tell application "Adobe Photoshop CS2"
do action the name of the action from name of the action set the action is in
end tell

I hope this helps. It should run quicker than using System Event.

- Zoar

Mac Dual G5 Mac OS X (10.4.3)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Photoshop Save as GIF with flatten

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.