Questions about the automation and extending of functionality through the use of scripts within Adobe Photoshop.

learn more… | top users | synonyms (1)

4
votes
6answers
14k views

How can I include a Photoshop file inside another Photoshop file?

If one was designing a website where they laid out each page mock as a separate photoshop file but each one had the common elements of the site such as the header and footer, but also could have ...
1
vote
1answer
125 views

Applying scripts to skip repetitive steps (Photoshop)

I am currently working on an image (wallpaper for personal use) based on lowpoly graphics. When creating the lowpoly part, I have created several triangular shapes, covering the part I wish to '...
0
votes
1answer
31 views

How to replace a font by another on all text layers in Photoshop?

I have a big PSD file with hundreds of text layers all placed in a lot of folders and subfolders. Some of those layers use font A, the others use font B. Now I want to replace the font in all layers ...
1
vote
1answer
147 views

Can a photoshop action or script load/save swatch, and choose color from it

I was wondering if it is possible for a photoshop action to choose foreground or background color from the swatch. I have tried doing it, but instead of picking from swatch it is always taking a ...
4
votes
1answer
472 views

How to export slices to PSD in Photoshop CS5

I have a big PSD file with many slices, and I would like to have all those slices in new separate PSD files. Is there a way to export a slice to a PSD ? And automate this action using a script/action ...
2
votes
2answers
232 views

Ending a PS CC script when no layers are selected

I've been working with a function I found on stackoverflow here that works as far as I can tell by grouping the layers, dumping layer names into an array then ungrouping them. function ...
2
votes
1answer
76 views

Can I add 'Export As' to an action script?

Could somebody explain how I can add 'Export As' as an action script in Photoshop CC 2015? I just want to automate saving icons to svg.
1
vote
2answers
85 views

How can I get the boundaries (width & height) of the current clipboard image?

To reproduce what I'm looking to do with scripting (JSX) in Photoshop: Select part of image with transperant background (no background layer) Copy File -> New *1 Paste *1 - Photoshop will ...
2
votes
1answer
214 views

Automate Export to Layers without overwriting

Here is the problem. I have a folder of PNGs. For each PNG, I want to create multiple PNGs with different styles applied to them. My approach was to create an action which creates multiple layers for ...
0
votes
2answers
231 views

Is there a way to merge layers with the same name inside a photoshop document?

I have a bunch of psd files with exact same layer stack in each. They contain different information, but the layer position in the stack, naming, blending modes are exactly the same in everyone of ...
2
votes
1answer
428 views

Scripting Photoshop: path has too many points to be converted to selection?

I am working with some large tiff files with fairly complex clipping paths, and have written a script to convert the paths to a selection, invert that selection and delete pixels in order to ...
0
votes
1answer
147 views

Photoshop batch/mass save for web

This is a variation on a number of previous questions, but I seem to have a unique situation. I have a photoshop file. It has many layer groups, each forming a distinct and complete image to be ...
1
vote
0answers
25 views

Contact sheet in PSD format with all layers editable? [closed]

I need to use the Contact Sheet function in Adobe Photoshop but the generated contact sheet is flattened to one image. Is there a way to generate a contact sheet in PSD format with all layers, ...
0
votes
1answer
15 views

Photoshop ico files and mass exporting issues

I'm using http://telegraphics.com.au/sw/ 's ico plugin to easily load ico files in photoshop(vs converting to png first)... This made it easier to use ico files. I have a custom .NET exporting ...
4
votes
2answers
174 views

How to change colour across multiple layers in Photoshop CS6

I've seen this type of question asked before, but I've not seen a satisfactory answer: I have a specific colour palette, and I can not stray from it at all; I have a specific green (32,144,24) on 93 ...
2
votes
1answer
722 views

Photoshop Scripting: batch replace colors

I'm trying to write a script that will replace the colors of all same-colored shapes, including those on non-visible layers. I am new to Photoshop scripting, but I imagine the pseudocode would work ...
0
votes
1answer
41 views

Actions in Photoshop

I recorder action sequence and toggle dialog window ON on file savings to change a saving file folder. And every time I saving .jpg file it add a "copy" word at the end of file name. How to prevent ...
0
votes
1answer
23 views

Error in Drawing a path using Photoshop scripting

I am using the following script for drawing a set of paths onto a photoshop image. var docRef= app.activeDocument; app.displayDialogs = DialogModes.NO; var currentRulerUnits = app....
0
votes
1answer
24 views

Photoshop Actions Panel Stop Without Message

I can insert a stop action using the Actions Panel dropdown > "Insert Stop" command. During playback, a popup is displayed with an optional message and a "stop" button. How do I stop an action without ...
-1
votes
1answer
31 views

Add a conditional line to existing script

I've got this script from an earlier question and answer (specific resize layer action) Many thanks to SQW! (function (){ var startRulerUnits = app.preferences.rulerUnits; app.preferences....
-1
votes
1answer
76 views

How to save layers in a group as one image in photoshop?

I am dealing with large number of layers in photoshop. How can I save multiple layers of a group as a single image in a batch process?
3
votes
3answers
37k views

How to export layers to pages of a pdf file in Photoshop CS5

I need to save each layer of my psd document as a page in a multi-page PDF file (or as a single-page PDF file each as I can combine them later). File->save as->PDF works for 1 layer at a time, but I ...
1
vote
2answers
126 views

Is there any way to identify clipping masks using JavaScript? PS CS5

I'm writing a script that looks for layers with a certain name in a document, and I need it to then check if it has any clipping masks applied to it, and select them all, so that I can merge and ...
1
vote
1answer
83 views

Place images into photoshop without confirmation prompt?

I drag and drop like 50 images into some opened psd. To complete this i have to confirm a transformation 50 times (press enter or click the checkmark). Any way to skip this step and make it apply ...
0
votes
1answer
62 views

Action to crop a photo with user input. The batch processing

I'm stumped. All I need to do is open my photo, have the action stop to wait for me to decide where the crop should be (to center the important part of the photo), then close that photo so the batch ...
4
votes
1answer
50 views

Curves automation in Adobe Photophop (CS 6)

I have some microscopy photographs with different exposures. The grayscale images will be used for comparison next to each other. Currently, to 'normalize' the differences in the pictures I tweak the ...
0
votes
0answers
42 views

Photoshop CS6 Scripting - Manipulate Transform Reference Point

When scripting the Photoshop CS6 Transform, you can set the center to rotate or scale around a point by specifying the AnchorPosition enum, such as AnchorPosition.BOTTOMCENTER for the bottom center, ...
11
votes
5answers
54k views

How to center text vertically within a textbox in Photoshop

It's pretty annoying that you can't center text vertically in Ps automatically, like you can in Indd. It's even more annoying that the bounding box of text can't be 'collapsed' or 'fit to text', like ...
-1
votes
1answer
74 views

Is there any way to record and play mouse click in Photoshop?

I'm trying to record a jsx using Photoshop scriptlistener plugin. Is there any way by which I can record the mouse click and play it again using scripting? I'm using the latest version of Photoshop.
1
vote
2answers
4k views

Export layers to files script not working

I'm trying to export certain visible layers to png in photoshop cs5 using the "export layers to files" script, but all it does is make a copy of the psd in a new tab and freeze. I tried in cs4 and ...
0
votes
1answer
36 views

How to work on multiple canvas sizes non-destructively

I am working on a UI project that requires multiple scales. Essentially I want to work at a high resolution(the original) but I need to be able to export the different widgets all at the same lower ...
5
votes
2answers
2k views

Can I automate saving different combinations of layers?

I have a source file for an icon. It has a base layer which is the icon background, and a number of layer folders, each of which contains layers for each individual icon. There are 20 or so of these ...
0
votes
2answers
183 views

PS CC Filter Selections used in Actions

The new layer filters is nice but doesn't record when making actions. Before I was able to add 'Select similar layer' in an action and edit all similar layers (because they have different layer names) ...
1
vote
1answer
131 views

Coordinates of dots on screen

Ok so I have a picture of a map with little dots for each city on the map, and I want to find the coordinates of each dot. The only way I've been able to think of was using the "info" panel on ...
0
votes
0answers
18 views

How to Batch Export Background Layer in PS or Bridge

I have thousands of tif files that all have different adjustment layers, but all have a background layer in the document. Sometimes the background layer visibility is turned on, sometimes it isn't. (...
0
votes
1answer
58 views

Export all layers to png in Photoshop including those outside of the canvas area

I am using the script inbuilt in photoshop, but if some of my layers work are outside canvas, it trims those to the visible area only. But we need everything in the layer in png, whether is was ...
2
votes
1answer
63 views

How to copy data to the clipboard from the info panel?

For example: I am wanting to copy some data from the info panel, preferably x, y, width and height to my clipboard. Is this possible within Photoshop? The reason I ask is because I have hundreds of ...
2
votes
1answer
262 views

How can I extract cursor coordinate in Adobe Photoshop for use in Action script? [closed]

What I want to do in Photoshop (version CC, but I think this applies to any version) is label a point using count tool under my mouse's current position, and label it multiple times (for different ...
2
votes
2answers
65 views

Changing layer colours across multiple Photoshop documents

I'm designing an app, and when I designed the screens, over 40 of them, I did it in the clients colours. We've now settled on a new colour scheme, and I need to replace old colours with new ones. Is ...
0
votes
0answers
47 views

How to change the color of one letter from a variable

I am trying to make a number of similar images from a text variable. I want one letter of this variable to be a different color in the final image. The problem is the text can vary slightly in length, ...
0
votes
0answers
51 views

Automating export layers by layer name

I am wanting to automate my exporting process. AS soon as I found a good way to export multiple icon sizes adobe went and removed "Extract Assets" so now I need a good way to do this. My Current way: ...
4
votes
3answers
24k views

Open a Photoshop document layer in a new File quickly?

My First Question here, I have a lot of PSD's to work on in which my main job is to: Copy a layer/layers Make a new Document place/drag them into the new document Trim the image to size Save as a ...
0
votes
2answers
1k views

How to cut a single pdf page in parts and save each part as images

I have a pdf with 10 question in it and now I want to create separate images of fix size for each question saved in a separate folder. How to do it automatically
1
vote
1answer
960 views

Export image sequence by moving layer in Photoshop

I want to export a simple animation for a rolling background. I need to move one layer to the left x pixels, then export as "frame*.png" and repeat. (Where * is the number of the frame. I need to ...
0
votes
0answers
119 views

PS Script: How to get color of the Rectangle Shape and Fill Layer

I have some layers in my document, one of them is Fill Layer and others are rectangles. I want to read colors of this layers and put them to an array. I can access layers with app.activeDocument....
-2
votes
1answer
167 views

Photoshop: Batch “Wireframe” Filter

I need to "wireframe" multiple image, over 10,000 and I am looking for the most efficient way to do this. I was thinking of a wireframe filter/effect in PS that will allow me to accomplish this task ...
8
votes
2answers
40k views

How to export/import a Photoshop action from one Windows computer to another?

I switched computers and I need a Photoshop action I used on the previous computer. None of the instructions I found online helped so far. :( I call the action on the old computer (Windows 7, ...
0
votes
0answers
106 views

is there any script to rename the already existed smart object with the name of its mother file

for eg: box1.psd have (red colored) "ball" smart object and "cat" layer box2.psd have (yellow colored)"ball" smart object and "dog" layer box3.psd have (green colored) "ball" smart object and "...
0
votes
0answers
148 views

Illustrator: Export layer combinations with a script

How to script exporting of several file/layer/layer combinations? For example in multilingual manuals. If there are of ai files of similar structure layered like this: [n+3) ...
1
vote
0answers
27 views

How to automatically create 500 images with increasing numbers in Photoshop? [duplicate]

I want to create 500 images which all have the same size and background color but show a different number (increasing from 1 to 500). So the output should look like this: ... Now I don't want ...