Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Browsing all 12244 articles
Browse latest View live

Photoshop scripting, export to png?

I use the following code: function SavePNG(saveFile){  var opts = new ExportOptionsSaveForWeb();  opts.format = SaveDocumentType.PNG;  opts.PNGB = true;  opts.quality = 100;  pngFile = new...

View Article


Image may be NSFW.
Clik here to view.

I have a script that works on all the machines in my office except one can...

Most of the machines in my studio are running cs5.5 or cs6 but one machine is running 5.1 - we have been using this script on all the machines:  #target photoshopfunction main(){if(documents.length !=...

View Article


doc.resizeImage based on percentage? is this possible

Is there a way to use the "doc.resizeImage" function but resize based on percentage?   I've tried the follow but I get errors......

View Article

Scripting brush strokes on smart filter mask

Hi guys, I am a complete newbie to all this so forgive me if this is a stupid question. I am having problems when trying to record brush strokes on a smart filter mask using script listener. Is this...

View Article

Why don't my dialogs show up in Photoshop?

I'm running the examples from the ExtendScript Toolkit UI and the dialog examples don't do appear in photoshop.   I copied SnpCreateTreeView.jsx from the examples directory to my toolkit window and ran...

View Article


Batch HDR creation script

I have created a Photoshop Script (using JavaScript) for batch creation of HDR images.I have used theseprevious discussions during implementation.  In the beginning part of the script there are some...

View Article

How to "change" resolution from DPI to l/cm?

Hi Adobe community, right now I am transferring a huge and slow photoshop action to a javascript cause I needed some kind of dynamic variable an action couldn't offer. And on the other hand: a script...

View Article

Image may be NSFW.
Clik here to view.

[Help needed] Sample colour in each cell of a grid

Hi All, First of all, HAPPY OCEANS DAY!  Here is my problem: I have hundreds of maps of exactly the same size, for which I would need to extract the "value of the colour" in each cell of each map....

View Article


Image may be NSFW.
Clik here to view.

Copy image from clipboard to (several) x y coordinates using javascript loop

I have an image (551 px by 709 px) which is on the clipboard. I would like this image to appear in my active document (3307 px by 4677 px)  The x and y locations where I want the images to appear are:x...

View Article


Iterate over all document layers applescript

Hi,I have experience as programmer but not in applescript or photoshop scritpting,Basically I want to apply some actions to layers, but only to those layers that are named ending in '-changeMe' e.g (...

View Article

Creating adjustment layers without Script Listener code

I'm assuming it's possible to create an adjustment layer without Script Listener code, but I can't figure out how. I can create a normal layer and change it to a text layer and that seems to be about...

View Article

Image may be NSFW.
Clik here to view.

cs6 Exr saving issue.

Hey everyone, I'm trying to update a portion of my .jsx code that worked in CS5, and now doesn't work in CS6.. EXR format is now included in CS6, and handles the alpha channel differently, basically it...

View Article

Artwork resizing

Hi All,  I have to resize around 600 artworks in different sizes with the following conditions  app.preferences.rulerUnits = Units.PICAS  Switch (case)}case 1 width <= 20  (No resize); breakcase 2...

View Article


Image may be NSFW.
Clik here to view.

Adobe Edit in ACR stopped working.

Hi, Can anyone help ? I have been running Russell Brown's excellent 'Adobe Edit in ACR' script for some time now through version 1.1.5 and now 1.1.6 and for some reason it has now stopped working. I...

View Article

A script for "Save for Web" as .jpg

I found a script that saves the current selected document in Photoshop as .png to the Desktop, and use it all the time. function main() {          // declare local variables          var doc =...

View Article


Read metadata for a file without Photoshop or Bridge

Hi Suppose I have a file in desktop called "test.jpg". So I create this variable: var myFile = new File ("~/Desktop/test.jpg"); This file has some keywords and instructions I need to read. And if the...

View Article

How to rename a Ps-path

I need to rename a Photoshoppath (only one path in file but with different names) with Javascript, I cannot select a pathitem and then rename. There are only two pathnames in my files: Path1 and Pad 1,...

View Article


How to get the color, style, stroke size and alpha values of selected object?

Hi All, I am new to photoshop, I am facing problem regarding to get the fill color value, fill style, stroke color, stroke size and alpha value of the selected object in the photoshop using script. Is...

View Article

How to get the style of a layer using photoshop scripting ??

As I know  there is a method  ApplyStyle(string)  which is uesd to apply the specified style to a layer. But I really don't know how to get the style name of a layer ? Anyone who knows? Please help me!...

View Article

Display thumbnail of PSD on ScriptUI dialog

I'm wanting to display a thumbnail sized jpeg or png image representation of a high resolution PSD on my ScriptUI dialog, and without having the PSD open and active. Any advice or suggestions to get me...

View Article
Browsing all 12244 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>