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 ArticleI 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 Articledoc.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 ArticleScripting 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 ArticleWhy 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 ArticleBatch 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 ArticleHow 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[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 ArticleCopy 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 ArticleIterate 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 ArticleCreating 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 Articlecs6 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 ArticleArtwork 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 ArticleAdobe 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 ArticleA 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 ArticleRead 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 ArticleHow 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 ArticleHow 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 ArticleHow 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 ArticleDisplay 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