How can I create a curves adjustment layer in JavaScript?
I've been trying a few different approaches along the lines of: var newLayer = activeDocument.artLayers.add(); // Create a new ArtLayer object newLayer.name = "MyLayer"; // name it for later...
View Articleadobe script for rotation and position
I am new to adobe script and actions (very new. like starting today, right now).First I just want to know if what I'm trying to do it even possible. Imagine a simple rectangle in photoshop.I have a...
View Articlecreate textarea
Hello,I want to create a window where we have a possibility of introducing a block of text (multiple lines ...). Closest to the problem component is 'EditText', but when new line (press ENTER) to...
View ArticleJSXBIN Syntax Error?
hey,Im trying to convert jsx file to jxcbin, and then embad it in a jsx script using: "app.doScript" without sucsses.. i tried the "eval" method but fail again.Before i export my jsx file to "bin"...
View ArticlePoint coordinates using for loop w/o closure problem?
Currently I'm working on a script that iterates through all the points in a path and assigns a number value of the current point, and then returns the coordinates of that point. No matter how I...
View ArticleRetrieve cap height from font
Is there any way to retrieve the cap height of a font from Photoshop? When creating text withtextItemRef.positionthe text gets positioned from the baseline, but I need to work out the cap height in...
View ArticleScripting drop shadow issue with "Linear" term
I have found an issue while applying a drow shadow. Depending on the language set for Photoshop I have to use, at line 61 by taking the code from Scripting listener: desc13.putString( idNm,...
View Articlethe coordinate of a bounding box is the same as the layer's coordinate?
Hello, everyone, I create a text layer, and got the layer's bounds. And then on this layer, I created a bounding box within some contents, now I'm confused if the bounding box's coordinate is the same...
View ArticleError 8800: General Photoshop error occurred....
Hi, i need some help with this error: Error 8800: General Photoshop error occurred. This functionality may not be available in this version of Photoshop.-The command "Paste" is not currently...
View Articleconditional #include?
is there way to conditionally #include an external javascript file in a Photoshop script? For example: if(false) { #include "fileA.jsx"} or try{ #include "fileA.jsx"} catch(err) {} Neither of...
View ArticleMove specific path to the top of path palette
Please help with any script or any photoshop options to move the path to first of path palette. Example:If a path palette has 6 paths, I need a path named "Shine" need to move to the first of stack....
View ArticleUnable to use warp in script - Photoshop CS2
Hi,I could not warp the image using javascript from Adobe Extendscript interface. This is what I tried.1) Created an action with warp, converted the action to jsx using xtools. 2) Used Scriptlistener...
View ArticleScript for deleting Hidden Layers which are not used in any Layer Comp?
Hello. I've turend the web upside down searching for a script that would do the following: Search through all the layer comps in the documentCheck which layers are hidden on all Layer CompsRemove/mark...
View Articlehow to get current channel(MULTICHANNEL) max value use histogram by javascript
i want to get current channel (MULTICHANNEL spot) max value,how to use histogram by javascript? my file CMYK + n spot channel.i want to get selected channel max value(gray)..thx
View Articlebatch odd dimension images to square
Hi I have lots of images that are all different sizes and more coming. I need to create an action that makes these images square in px dimensions, with the new side dim. the dim. of the longest side. I...
View ArticleRun a function on Cancel button click
Hello, guys!The question is as fallows:Say, the median filter is in progress and the user clicks Cancel button to stop the processing.Can I detect this event and trigger my function on it?I've googled...
View ArticleScript to search layer names
Hi - Does anyone know if there is a script that can search through layer names within a file for a specific text string and then select it as the active layer? For instance, if a file has 4 layers,...
View ArticleUsing PhotoShop Action/Scripts in command line
Hello everyone, I am working on a project that needs to run PhotoShop's script/action on a folder everyday. It needs to be done automatically without no user interaction. Ideally, I would create a...
View Article