Photoshop Quick save script
 
     
 

Description:
If you are someone needed to work on the same PSD file, flatten the layers, removing all channels, and saving it to a same file over and over .... and over again, this script may just be what you have been looking for. As a CG artist, I have always needed to update the same textures, render, and update the same texture again. I don't find it exciting to keep navigating from folder to folder to save. Also, I usually have lots of channels in my PSD file and there isn't a command in Photoshop to remove all channels at the same time. So, another script I have written just to do this.

 
  Installation:
Copy the jsx scripts, copy them into:
C:\Program Files\Adobe\Adobe Photoshop CS3\Presets\Scripts\

Launch Photoshop and you will find the script is located at:
File -> Script

You can execute the scipt from here, or make it into Actions and assign a shortcut key to it.
 
 
DupFlattenRemoveChannel.jsx

var doc = app.activeDocument
var fname = doc.name.split(".")
var fname = fname[0]
var newDoc = doc.duplicate(fname)
activeDocument.flatten()
activeDocument.channels.removeAll()


This is just a simple command to flatten all layers, remove all channels and duplicate it without the the word copy as part of the naming.
 
 


QuickSave.jsx
var doc = app.activeDocument

var fname = doc.name.split(" ")

var fname = fname[0]

var zinTifFile = new File( "C:/temp/myfolder/" + fname + ".tif" )
var zinTifSaveOptions = new TiffSaveOptions()
app.activeDocument.saveAs(zinTifFile, zinTifSaveOptions, true, Extension.LOWERCASE)



This is the main script, replace the red color path to your working directory.

So, here are the steps to put together everything:

1) Copy DupFlattenRemoveChannel.jsx and QuickSave.jsx into your Photoshop directory (Usually at:
C:\Program Files\Adobe\Adobe Photoshop CS3\Presets\Scripts\).

2) If your Photoshop still running, exit it and launch Photoshop again to pick up the script. You should see the script appearing under File -> Script.

3) You can execute the script from here, but I prefer to put them together as Actions.

4) Open an image file, create new Action in Photoshop, execute the DupFlattenRemoveChannel script, follow by QuickSave script. Stop the Action recording and you are done. You can assign a shortcut key if you need to keep working on the same file.

5) If you want to work on the other file, but wanna to reuse the scripts, simply duplicate the QuickDave.jsx file, name it to something else, replace the file directory, and create the Photoshop Actions again.

6) I have a long list of Actions associate to different files. Making a lot easier for me to say, hit one button to save (without the trouble to flatten layers, remove all channels and navigate to the target folder), and render again in my 3D app and see the updates immediately. Yeah!!