Posts tagged "Automation"

August 23, 2011

Automating Printing with Actions and Scripts

For those who just want to know the short story – in Photoshop CS5 you can record an action that specifies every selection available in the Print Window and the Driver (paper size, paper type, color management mode, printer marks).

For those who want the longer version – in order to do this, we had to change the workflow a bit:

On Mac, in previous versions, you would set up your print in the Photoshop print window, click print, and then go to the OS print window to set the driver settings. We moved the OS print dialog into the Photoshop Print window, under the Printer Settings button. (The reason for this is so that we can capture all the info and put it in an action or a script.) On the first time printing in CS5, if you do not enter the Printer Settings dialog (the OS/Driver dialog), the OS dialog will appear after hitting print (just like CS4). It does this because there are no pre-existing settings. After that, this OS dialog will not appear automatically, and Photoshop will use whatever settings were last entered. Opening the Printer Settings in the print window will allow you to adjust those settings, just as before, but the order is different so this might be confusing.

On Windows, Photoshop has always had the OS/Driver dialog available from the Photoshop print window so it’s not as different, but we have removed the OS window you would have had after clicking print. Again, this was done so that Photoshop has all the print info (contained in Photoshop) so that you can record actions and scripts.

Another change that was made, is that upon selecting a printer, the default profile for the printer is selected and all of the profiles associated with that printer are filtered to the top of the list. Seems like a slam dunk, but unfortunately not all printers have logical defaults and unless you happen to be printing to the default paper, Photoshop will most likely be picking the wrong default profile. If you are a user of custom profiles, those profiles will very likely not be associated with the printer, so unfortunately Photoshop can not choose the correct profile automatically in that situation either.  It does however, at least encourage the selection of a printer profile (not AdobeRGB) to new users.

Thank you Tom Attix for this information!

4:29 AM Permalink
June 1, 2011

Video Tutorial – Helpful Hints for Creating Actions in Photoshop

In this episode of The Complete Picture, I will focus on little known features and helpful hints for creating actions to successfully automate tasks in Photoshop.

4:32 AM Permalink
May 26, 2011

Placing Guides in the Center of a Photoshop Document

To quickly set guides in the center of any size and/or resolution Photoshop document, set the Preferences for  Units & Rulers to Percentage, show your Rulers (Command (Mac) / Control (Win) + R), and record an action dragging guides to the 50%  marks. (You can also select View > New Guide to place the guide at the 50% mark instead of dragging it out from the rulers.) Next time you need guides, simply play the action. For more information about creating actions, please see:

Basic Actions and Batch Processing

In this episode of The Complete Picture, learn how you can accomplish more in less time using actions and batch processing in PSCS3’s to streamline your workflow and minimize repetitive tasks.

Advanced Actions, Droplets and Scripts

In this episode of The Complete Picture, take automation to a new level in PSCS3 by mastering complex actions in order to turn several steps into a single click. Discover droplets, integration with LR and scripts.

4:42 AM Permalink
December 16, 2010

Open As Layer (no extension)

Based a a customer request, Thomas modified the original scrips so that it now will open an image and convert the Background into a layer and name the layer the file name – without the extension.

Installing the OpenAsLayerNoExtension.jsx script will allow you to open a file and have Photoshop CS5 automatically promote the background into a layer AND rename that layer the same as the file name (without the extension). This script works for the Open command, opening  files through Bridge and Adobe Camera Raw. Special thanks to Thomas Ruark at Adobe for creating and sharing this script!

Directions to install:

Copy the script into the Photoshop CS5 folder / Presets / Scripts / Event Scripts Only
Launch Photoshop CS5

Select File > Scripts > Script Events Manager

In the Script Events Manager dialog box:
Click to enable “Enable Events to Run Scripts/Actions:”
For Photoshop Event: use the drop down to select “Open Document”
In the Script drop down select “OpenAsLayer”
Click the Add button (it should show up in the upper list box)
Click the Done button

Open your document. In the Layers palette, the Background has been changed to a layer and renamed the document name. Note: This script will have no effect on documents that do not have a background layer.

2:11 PM Permalink
October 6, 2010

Selecting Layers via the Layers Panel

Option (Mac) / Alt (Win) + left/right bracket will select the next layer up/down in the Layers panel. Adding the Shift key adds to the selection.

5:45 AM Permalink
October 4, 2010

Invert Foreground Color

This JavaScript (Invert Foreground Color) inverts the foreground color in Photoshop.
To install:
1) Download and unzip the file
2) Quit Photoshop
3) Place the script in your Photoshop CS3/Presets/Scripts folder.
4) Launch Photoshop
5) Select a foreground color
6) Choose File > Script > invertForeGroundClor

Of course you can assign a keyboard shortcut to the script by selecting Edit > Keyboard Shortcuts, selecting Shortcuts For Application Menus and scrolling down to File… Scripts… InvertForeGroundColor

5:11 AM Permalink
September 23, 2010

Toggling Commands and Modal Dialog Box Controls On and Off

There are two columns to the left of recorded actions/commands in the Actions panel. The first column controls if the command in the action is to be played or skipped – when on, a check is displayed, when off, it’s an empty well. The second column determines if a “modal” dialog box will be displayed when the command is played – when on, a small dialog box icon is displayed, when off, it’s an empty well. Note: commands that do not display a dialog box are blank in the second column.

Option (Mac) / Alt (Win) -clicking on either of these two column’s icons (the check, the modal dialog box or the empty well) will toggle on or off all of the other commands/modal controls. Note that this shortcut works on other panels as well. For example, Option (Mac)/ Alt (Win) -clicking the eye icon in the Layers panel toggles the visibility of all other layers.

5:31 AM Permalink
September 22, 2010

Changing the Setting in a Recorded Command

To change the settings recorded in an action,  double click on the command in the action and modify as needed.

5:53 AM Permalink
September 21, 2010

Open, Make and Rename Layer

Installing the OpenAsLayer script will allow you to open a file and have Photoshop CS5 automatically promote the background into a layer AND rename that layer the same as the file name. (This works for the Open command, opening  files through Bridge and Adobe Camera Raw). Special thanks to Thomas Ruark at Adobe for creating and sharing this script!

Copy the script into the Photoshop CS5 folder / Presets / Scripts / Event Scripts Only
Launch Photoshop CS5

Select File > Scripts > Script Events Manager

In the Script Events Manager dialog box:
Click to enable “Enable Events to Run Scripts/Actions:”
For Photoshop Event: use the drop down to select “Open Document”
In the Script drop down select “OpenAsLayer”
Click the Add button (it should show up in the upper list box)
Click the Done button

Open your document. In the Layers palette, the Background has been changed to a layer and renamed the document name. Note: This script will have no effect on documents that do not have a background layer.

6:45 AM Permalink
September 20, 2010

Add File Name as Text Layer

If you’ve ever needed to add a text layer that contains the name of the open file here is a script to make it happen.

Download the script:  AddFileName20pt.jsx and double click to unzip the file.

Quit Photoshop.

Place the script in your Photoshop CS5/Presets/Scripts folder.

Launch Photoshop.

Open your image.

Select File > Scripts > AddFileName20pt

A word of caution, it is doubtful that the script will add the type layer at the exact size and in the exact position that you will want it. In order to make changes to the type style (size, font, color etc.), it is CRITICAL (especially if you are recording the script as part of an action) that you double click on the “Filename” type layer in the Layers palette and make changes to the type (font, size etc.) using the Options bar. Do NOT swipe the text in the image area or it will record that file’s name as part of the action and all of the following images will be named the same as the first one that you recorded!

Special thanks to Thomas Ruark at Adobe for creating this script.

6:41 AM Permalink
September 13, 2010

Video Tutorial – The Top 10 ways to Automate Lightroom (Part 1)

In part 1 of this 2-part episode I will demonstrate how streamline Lightroom 3 by taking advantage of presets, templates, collections, virtual copies (and more) in order to eliminate much of the repetitive post-capture tasks such as importing, tagging, developing, exporting and sharing photographs.

8:32 PM Permalink
March 24, 2010

Export Layer Comps

In order to export all of your Layer Comps as independent files, select File > Scripts > layer Comps to Files. You can also export your layer Comps directly to Web Photo Gallery (WPG). And of course you can add a custom keyboard shortcut for either of these scripts by choosing Edit > Keyboard Shortcuts and select Shortcuts For: Application Menus.

5:33 AM Permalink
March 5, 2010

Renaming in Panels

If you choose to view your swatches (or styles) as a list, you can double click on the name of the swatch to rename it (this is true for any panel that displays it’s items as lists (Actions, Layer Comps etc.).

6:24 AM Permalink
January 15, 2010

Add File Name as Layer

If you need to add the name of a file to an image as a Type layer, I have posted a script to http://www.jkost.com/photoshop.html to do this. Simply place the script in the Photoshop Applications Folder’s Presets > Scripts folder. Relaunch Photoshop and run the script it by selecting File > Scripts > AddFileName20pt. Note: if you’re using this as part of a Batch process and want to change the Type attributes, simply select the layer (not the individual type in the image area) and, in the Options bar, change the desired attribute such as font, color etc.).

5:28 AM Permalink
January 14, 2010

More Scripts

Two new scripts that I find very few users know about are available in PSCS4 to quickly work with complex multi-layer documents: Flatten All Layer Effects and Flatten All Masks. In addition, if you’re using Layer Comps, Photoshop has scripts to export: File > Scripts > Layer Comps to Files and Layer Comps to WPG.

6:26 AM Permalink