Questions about the script/extension language in Photoshop, used to automate certain tasks.

learn more… | top users | synonyms (1)

1
vote
1answer
44 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 ...
1
vote
2answers
3k 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 ...
1
vote
2answers
41 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 ...
1
vote
1answer
146 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
125 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
373 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
29 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 ...
0
votes
1answer
59 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 ...
3
votes
2answers
41 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 ...
1
vote
1answer
49 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 ...
-2
votes
0answers
26 views

Placing 10 photos in each of 5 pages using actions in Photoshop [duplicate]

I have 50 photos and I would like to place them in 5 pages. The five pages have the same locations for the photos. If I place 10 photos on the first page with the desired size of the photo. There are ...
0
votes
1answer
92 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 ...
3
votes
1answer
336 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 ...
1
vote
2answers
171 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 ...
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 ...
2
votes
1answer
482 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
2answers
172 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
67 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
10 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. ...
4
votes
5answers
12k 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 ...
0
votes
1answer
28 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
40 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 ...
0
votes
0answers
33 views

Pause/Stop PS Action and Resume Later

Is it possible to stop/pause a Photoshop Action and resume where it left off at a later time? I have an action that adds padding to images and running it to a batch of 50,000 images. Obviously this ...
2
votes
1answer
180 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
53 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
37 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
38 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: ...
3
votes
3answers
21k 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
991 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
161 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
67 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 ...
-1
votes
1answer
61 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 ...
6
votes
2answers
32k 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
49 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
102 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
25 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 ...
4
votes
1answer
985 views

Is there an automated, configurable way to organize many layers into a sprite sheet grid with exact pixel coordinates in Photoshop?

I have a huge grid of icons that need to be positioned so that I can write sprites out of them after I'm done. Right now, I have so many layers, it'd take me forever to click on each one ...
1
vote
0answers
26 views

External Data Input PSCS6 with text changes

Basically Im a small time graphic designer trying to simplify some small tasks that will be constantly pop up. My objective is to automate Twitter banners where the user can input their Name 'Alias' ...
2
votes
4answers
536 views

Keep one layer always on top of the rest?

Is there a script/plugin that could make one layer appear always on top? I am busy with a website design and I created some safe zones which I like to have on top at all times. However, now when I ...
0
votes
1answer
111 views

Split elements from one layer into multiple layers [closed]

I have a .psd file with a lot of assets (icons, logos, etc) in a single layer. Is there any automatic way of splitting these elements into separate layers?
0
votes
1answer
100 views

Script to assign a Pantone color to a channel in photoshop

I have a Pantone color, say "PANTONE 3135 C", and I would like to assign it to a channel in Photoshop (CC 2015, with ExtendScript 4.5.5, Toolikt CC 4.0.0.1) using JavaScript/ExtendScript. To do this ...
0
votes
1answer
50 views

Photoshop CC: How do I set distance between two objects (for Actions)

I've got a ton of objects I'd like to set spacing between (vert & horizontal) in PS CC. I'd like to be able to select two objects and automatically set spacing between them relative to each other ...
0
votes
0answers
59 views

Centering Text in script in photoshop

How can you center text in a script? I have tried to get it's bounds, use PARAGRAPHTEXT and use the width and height but nothing works well. I've also tried to make the text centered using ...
9
votes
4answers
43k 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 ...
3
votes
3answers
27k views

How to automatically save each layer as its own png/jpeg while keeping one main layer above

We offer vinyl decals for many devices. To show what a design looks like on a device, we have to create a main layer of the device, having the place of where the skin would fit cut out for our ...
1
vote
4answers
3k views

Script iterating through layers stops halfway

I'm trying to iterate through every layer in a document and for some reason my script only goes through the first half (13 out of 25) and then at 14 it says that the element doesn't exist. Could you ...
1
vote
1answer
234 views

How to make PDF characters darker for print without using photoshop?

I am a researcher and I have to read research papers. Unfortunately, the characters are not dark enough, so the papers are hard to read when printed on the paper. Note that the printer's cartridge has ...
0
votes
1answer
2k views

Can I stop Photoshop from asking for interlaced option when saving a PNG format?

I never want my PNGs to be interlaced. So I wish I could set a bunch of option defaults in the application so that I am saving time when outputting a lot of images as PNG over the course of a day ...
6
votes
7answers
23k views

Exporting groups of layers from a PSD to a single PNG file using Photoshop

What is the fastest way by which I can save a group of layers as a single .png file with empty spaces around the group of layers trimmed. I know I can run a script to export every single layer to a ...
0
votes
0answers
40 views

Easy way to automatically shift layers when adding new images to a catalogue?

I need an easy way in which to edit a catalogue. I'm working on creating a catalogue for a client that'll have all their products. The problem is, I need a way in which this catalogue will be easy to ...