New Document Action Preset

If your anything a hobbyists with Photoshop as I am, you may find yourself experimenting with a new technique or mixing filters.

I usually start with a prefab document size. Here is a great way to help simplify this new document preset with minimum clicks.

Define a new document Preset:

  1. To begin, open Photoshop, then go ‘File/New’.
  2. At the ‘New Document’ dialog set the following parameters, as captured below. Ultimately, set your desired options.
  3. Then select the ‘Save Preset’ command (encased in red).

Next give your ‘Preset’ a name. I kept it at the default 500×500, as captured below.
Then click ‘OK’ command.

From now on whenever, go to the New Document dialog that preset will be available in the drop down list, as captured below.

Assign the Preset to an Action:

Now that the Preset is created lets assign it to an action.
With no document open, go ‘Window/Actions’ to bring the Actions Palette to the foreground.

Next, select the ‘New Action Set’ icon (encased in red below), then give your Action Set a user friendly name. (I used MyActions).  This is just to separate the actions you create from the default Photoshop actions.

Next, hit the ‘New Action’ icon (encased in red below).

At the next ‘New Action’ dialog (captured below):

  1. Give your new action a Name. 500×500 in my case will represent my new document size. (encased in Red)
  2. Indicate which ‘Set’ this new action will go to. (encased in Blue)
  3. Assign (an optional) Function key that will quickly run this action at any time. (encased in Green)

Once the above information is supplied, hit the ‘Record’ command to the right of the New Action Dialog.

Doing so will close the dialog and the Action is ready to Record your every next move. As indicated by the following.

While in Record mode do the following:

  1. ‘File/New’
  2. Give the new Document a name. I used ‘Experimental’.
  3. Select the ‘500×500’ Custom Preset from the ‘Preset’ drop down list.
  4. Click OK.
  5. Go back over to the Actions Palette and hit the ‘Stop Recording’ icon. (encased in red below.)

It’s a pretty simple process, and now all you have to do whenever you need a quick new document is press the ‘Shift +F2’ keyboard shortcut assigned to it.

Certainly, this is a simple example and you can build on this action or others to add new prefab elements to help streamline productivity, weather it be for experiments or for real work flow.

Sequential Batch Renaming

Here is a simple batch processing method using the File > Automate > Batch command that enables you to bypass the Action Process requirement so you can perform manual output sequential batch processing.

Step 1: Create a ‘donothing’ Action

  1. Go Window>Actions to bring the Actions Palette to the foreground.
  2. Click the Create New Set icon at the bottom of the Actions Palette.
  3. At the New Set prompt give it a user friendly name, I used ‘donothing’.
  4. Click OK to commit the New Set changes.
  5. The new ‘donothing’ set is now active and available in the Actions Palette. Next click the ‘Create New Action’ icon command.
  6. Give the New Action a user friendly name, I used ‘donothing’ again.
  7. Click the Record command option.
  8. Notice the active red Record playback control at the bottom of the Actions Palette.
  9. As indicated by the title, we don’t want this action to record anything so click the Stop playback control. But it will be used to by-pass the ‘Play’ feature within the ‘Batch’ dialog.

Step 2: Perform Batch

  1. Go File>Automate>Batch.
  2. Set the Play:Set and Action to the ‘donothing’ ones created earlier.
  3. For sake of this example I used Source : Folder and clicked the Choose… command to locate a folder of images.
  4. I then set the Destination : Folder and clicked Choose… for the new batch items to be saved to. (In my case in a folder on my Desktop).
  5. In the File Naming section I set to 2 Digit Serial Number from the drop list.
  6. Then set Starting Serial# to 01. Then click OK to batch process.

Note: Supplying the Play feature with such a ‘donothing’ action you will be prompted with ‘Save As’ dialog for each batch process.

To avoid the Save As dialog you may prefer ready made Action from the Production Set, entitled Save As JPG Medium as captured below.

Below is the before batch (left) and after batch (right).

Script Events Manager – Auto Stroke Paths

Utilize Photoshop (CS2 and above) Events Script Manager combined with a simple Action to automate stroking paths.

Create New Document

  1. Start with a File>New Document Preset of your choice. (I used 500×500/White Background)
  2. Go Window>Layers to bring the Layers Palette to the foreground.
  3. Go Window>Actions to bring the Actions Palette to the foreground.
  4. Go Window>Paths to bring the Paths Palette to the Foreground.
    Note: If your Paths Palette is grouped with the Layers Palette, click the Path Tab and drag it out of the group so that it’s a free floating Palette as I have captured below (4).

Create Path

  1. Activate the Pen Tool (P) on the Toolbar.
  2. Select the Options Bar Paths feature for the active Pen Tool.
  3. Then click once to create the first Anchor Point, then click and drag to curve to the second Anchor Point and click and drag for the third Anchor Point.
    Note: A two or three Anchor Point Path is fine. Details are not important.
    You should also see the Work Path formation in the Paths Palette as well.

Convert Work Path to a Saved Path

  1. Double click the Work Path Thumbnail in the Paths Palette.
  2. Accept the default New Path naming convention. Click OK to commit changes.
  3. The Work Path is now a saved ‘Path1‘.
    Note: Work Path’s are temporary, any other path creation overwrites the previous one.

Select Brush Preset

  1. Activate the Brush Tool (B) on the Toolbar.
  2. Select the Options Bar Brush Preset Picker (encircled in red below), then from the preset list select ‘Hard Round 5 pixels’.

    Click once anywhere on the screen (or Return/Enter) to close the Brush Preset Picker.

Create Stroke Action Set

  1. Click the Create New Set folder icon (encircled in red below).
  2. Give the New Set a user friendly name – I used ‘Stroke’. The click OK to commit changes.

Create Action
The above Create Action Set process now has the new ‘Stroke‘ set active in the Actions Palette.

  1. With ‘Stroke‘ Action Set active click the Create New Action icon (encircled in red below).
  2. Give the New Action a user friendly name – I used ‘Stroke Path’. The click OK to commit changes and begin recording.

Record Stroke Path Action


Stop Record Stroke Path Action
Click the Stop Record Action Playback icon command (encircled in red below) at the bottom of the Actions Palette. Now we have the action in place, organized into an Action Set called ‘Stroke‘, entitled ‘Stroke Path’.

Create Script Event
Now that we have the Stroke Action in place lets tie it to a Photoshop Event – Path Creation.

Close Photoshop.
Browse to the following Script Events Manager xml preference file on your hard drive, and open it in your favorite text editor.

To locate the Script Events Manager.xml on a PC:
‘DRIVELETTER:Documents and SettingsUSERPROFILEApplication DataAdobePhotoshop9.0Adobe Photoshop CS2 Settings’ folder

To locate the Script Events Manager.xml on a Mac:
‘UsersUSERPROFILELibraryPreferencesAdobe Photoshop CS2 SettingsAdobe Photoshop CS2 Settings’ folder

Once the xml preference file is open, create a new (successive) numbered entry (in my case – 9) exactly as I have captured below.


– The name node can be any descriptive title – I used ‘Stroke Path’.
– For the value node ensure there are two extra spaces after the Mk. (Shorthand for the four character ‘Make’.)
– The valueClass node also has to be a four character string – in this case ‘Path’.

Save and close the xml preference file.

Restart Photoshop. (It should remember the Layers, Actions and Paths Palette locations upon last use.)

File>New and create a new document, any preset size (as long as it’s large enough to contain drawn paths), Background of White.

Then go File>Scripts>Scripts Event Manager.

  1. Tick Enable Events to Run Scripts/Actions.
  2. Select Stroke Path ‘ Photoshop Event from the list. (This is the one we added in the xml preference file.)
  3. Enable Actions and select the Stroke Action Set from the first drop list, then the Stroke Path Action from that set.
  4. Click the Add command button and you will see it added to the top.
  5. Click the Done command.

Now we’re set up.

Select the Pen Tool (P), activate the Options Bar Paths feature.
When you complete your path, double click Working Path in the Paths Palette.
Photoshop will now detect an event (Make Path) and trigger the Stroke Action.

It may be a trivial task, but if you’re creating brushed line art it can save you time on the round trip of applying manual strokes. Also, now you have another Event (Mk Path) you can explore in combination with other actions.

Note: If you don’t need the Event anymore Disable it/or Remove Event via the File>Scripts>Scripts Event Manager dialog.

Script Events Manager Tips

Remove A Notifier

You can remove a custom notifier (such as the SAVEFORWEB listed above) event from the drop-down list by deleting the Script Events Manager.xml preference file from in the Photoshop preferences folder.

To locate the Script Events Manager.xml:

  • XP
    ‘DRIVELETTER:Documents and SettingsUSERPROFILEApplication DataAdobePhotoshop9.0Adobe Photoshop CS2 Settings’ folder
  • Vista
    ‘DRIVELETTER::Users[USERPROFILE]AppDataRoamingAdobeAdobe Photoshop [version #]Adobe Photoshop [version #] Settings’ folder
  • Mac:
    ‘UsersUSERPROFILELibraryPreferencesAdobe Photoshop CS2 SettingsAdobe Photoshop CS2 Settings’ folder

Note: Deleting the Script Events Manager.xml Preference file is permanent. Consider backing it up to another location before deleting it.

Or if your have multiple custom notifiers added to the list, open the same .xml file noted above and only delete the xml nodes you don’t need.

Maually Add Notifier

To add items to the ‘Script’ drop down list simply copy your custom .jsx files to the following location:

DRIVELETTER:Program FilesAdobeAdobe Photoshop CS2PresetsScriptsEvent Scripts Only
…and they will automatically be appended to the Photoshop Events list, as captured above (RotateUpright.jsx is new in the list).

Otherwise, select the last itme in the list ‘Browse’ to locate the .jsx script you would like applied with your Event.
Note: If you choose the ‘Browse’ option, the .jsx file must remain in that same location for as long as this Event exist.

To add to the Events drop down list programmatically, browse to and open the Script Events Manager.jsx file with the ExtendScript Toolkit and you will notice there are an additional 30+ Event ClassIds (commented out – in Pink/ See below capture).

Note: Backup your original file before experimenting.

Script Events Manager.jsx is located in the ‘DriveLetter:Program FilesAdobeAdobe Photoshop CS2PresetsScripts’ folder ExtendScript Toolkit is a Javascript Utility available upon install and is located in the ‘DriveLetter:Program FilesAdobeAdobe UtilitiesExtendScript Toolkit’ folder.

For example I created two objects for the following two Events in the ‘Function: GlobalStrings’ section.

strNewLayer = localize( ‘$$$/JavaScript/ScriptEventsManager/NewLayer=New Layer’ );
strNewChannel = localize( ‘$$$/JavaScript/ScriptEventsManager/NewChannel=New Channel’ );

Then uncomment them in the ‘Function: InitParams’ of the code like below:

inObject[‘events’].push( new EventData( strNewLayer, ‘Mk ‘, ‘Lyr ‘ ) );
inObject[‘events’].push( new EventData( strNewChannel, ‘Mk ‘, ‘Chnl’ ) );

As you can see below, I have the two above Photoshop Events available in the list.

If you know your way around scripted functions then repeat the above process for the other available ClassId’s, otherwise consult ‘Appendix A: Event ID Codes’ of the JavaScript Reference Guide.pdf in the Scripting Documentations link below.

Photoshop CS2 Scripting Documentations can be viewed here.

See the Photoshop CS2 Scripting Guide for more information on scriptable events.

Introduction to Scripts Events Manager

A great new automation and productivity tool shipped with Photoshop (CS2) is the Scripts Events Manager.

Essentially this tool combines Javascripts and/or Actions to coincide with unique Photoshop Events Documented as notifiers).

The new manager can take these two powerful processes and apply them to routine events, automatically.

Apply them once and forget about it!

To apply this, simply assign an Event, such as Opening, Saving, or Exporting a file in Photoshop, to trigger a JavaScript or a Photoshop action.

  1. Run Photoshop and choose ‘File/Scripts/Scripts Events Manager’ menu command and you will be prompted with the following dialog.

  2. Select ‘Enable Events To Run Scripts/Actions’.

    Events Manager is DISABLED by default to prevent unwanted events triggered during your normal workflow.

    If you are unsure during your experiments with various scripts and actions then deselect this feature before closing down Photoshop.

  3. From the ‘Photoshop Event’ (Notifier) drop down menu, choose the event that will trigger the script or action.

    In my example I chose the Event (Notifier) ‘Start Application’ captured below.

  4. Next, select either Script or Action, and then choose the script or action to run when the Event (C) occurs.

    Note: You can only select from one of the two options, but a custom script can trigger any of the loaded Actions.

    If you choose Script, then select from the preset Scripts available in the list.

    My example below will trigger a ‘Welcome’ Alert Message the next time Photoshop ‘Starts’.

    To run a different script, choose ‘Browse’ from the drop down list and then navigate to the script.
    If you choose Action, then select from the first pop-up menu and an action from that set in the second menu.

    My example below will trigger the prefab ‘Automation Workspaces’ Action from the ‘Default Actions’ set to load the next time Photoshop ‘Starts’.

    Note: The action must be loaded in the Actions palette to appear in these menus.

  5. When you have decided on your choice of Script or Action, click the ‘Add’ command.

    The event and its associated script or action is then populated in the dialog box. (Indicated by the arrow below.)

  6. To complete the Scripts or Action Events Manager configuration simply click the ‘Done’ command.

    Your choice of ‘Photoshop Event’ (C) will then trigger the associated Script or Action (D).

    Note: Choosing the Photoshop Event ‘Start Application’ requires a restart upon first configuration.

Script Event Manager for sRGBs4w

The Problem:
When you use a color profile different than sRGB, the color of your images do not look right when opened in a non color managed application, like a web browser.

A solution is to convert your images to sRGB before you use Save For Web.
But doing it manually can be tedious…

The Solution:
In Photoshop CS2, here comes the Scripts Event Manager to the rescue!
Its function: if a peculiar event happens, it will automatically run an action or a script.

Jeff Tranberry of has created a handy script solution to the above problem.

Visit the sRGBs4w script solution tutorial for details.

For more information regarding a list of Custom ‘Photoshop Events‘ consult the following.

For other Photoshop and/or Bridge related scripting resources, please consult the Adobe User to User Forums.

Other Scripting related Sources:
Trevor Morris Photoshop Scripts
Photoshop Scripts Forum
Russel Brown Photoshop Scripts
Scripting Adobe Photoshop CS2 (Source:
Ben Long Automator Actions (Mac)
Adobe Studio Exchange for additional Photoshop CS2 Scripts and Actions

UPDATE: CS4 adds the ‘Convert to srgb’ option at the ‘Save For Web and Devices’ dialog.