How to pass parameters to automation plugin to Javascript
Hello, We can call automation plugin from java script below code. var xx = stringIDToTypeID( "459ac2e6-82d1-11d5-9879-00b0d0201111" ); // Has will be the unique ID for this pluginexecuteAction( xx,...
View ArticleHow to get rid of confirmation dialog on actions with scripts (multi path...
I'm trying to use a script in actions to clear all paths, from the web found the "activeDocument.pathItems.removeAll();" and it works nicely when invoked from script menu with no dialogs at all but...
View ArticlePerspective Transform in Javascript
Hej everyone, I'm working on a script, which should do an automatic perspective correction. Unfortunately the only way I found out until now is some code, generated with the ScriptListener Plugin - and...
View ArticleHelp in writing a script
Heys guys,I'm practically a newb in scripting, so I'm relying on your help to put my problem into proper javascript. ————————————————————————————————————————————1) Open all jpg files in a specified...
View ArticleChanges to Photoshop CS5 and Applescript
Looks like there are some major Applescript changes to CS5, which is unwelcome for anyone with existing scripts. From what I can see, the difference (that affect me anyway) are a) PSCS5 seems to...
View Articleaccessing the pixels' alpha values within a script (the "a" of rgba) when...
hi all, I need to evaluate/scan all pixels of a given PSD layer via a script. for accessing the R, G, B values I seached the script reference and found the RGBColor element as PropertiesProperty Value...
View ArticleBatch replace smart objects
Hello, I have very minimal scripting knowledge, and every script I've found for this workflow is partial or results in "undefined". I am on a mac running Photoshop CC (latest update). This is what I...
View ArticleHow 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 ArticleHow To Exit A Script?
Hello.I'm trying to write a script (My First) for Photoshop.I want to check a condition and if it's true to exit the script.The problem I can't find any place writing what is the "Exit" command in a...
View ArticleWatch Folder
Hello, Is there a way to have Photoshop watch a folder for new images and run some actions on the newly added files - after which removing the original from that folder. I need to automate the...
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 ArticleHow to disable toolbars?
Hi, just would like to know is it possible to disable select set of tools using javascript/applescript? Any thought on how this can be achieved please ?
View ArticleHow to Minimize Window Dialog
I'm creating a dialog window for PS CS6. Is there any way to minimize the window and then do some work in photoshop, once that gets completed bring back the same minimized window (other way round...
View ArticleDid CC 2014.2 break textItem.size?
Scripts that worked before the update are now broken, and text layers created via script are all 12px. See this simple script: var docRef = activeDocument; var TextLabel = docRef.artLayers.add();...
View ArticleHow can I reference a custom shape's name?
When you create a custom shape you are allowed to give that custom shape a name. I want to create a script that alerts a custom shape's name. How can I therefore store a custom shapes name in a...
View ArticleHow do we batch export of EXIF metadata in Photoshop?
Hi all We are hoping to export the photos on our Flickr site to a local drive, and then do a batch upload of the photos and their metadata to our library's new database. To do this, we have downloaded...
View ArticleCreate Annotations with 'author' name tool property
Philip Cord has kindly sent me this code that allows to create annotations with the "Author" tool property (older versions than CS3 couldn't get this on script listener - only on the CS3 script...
View ArticleHow to Package and Distribute Scripts + Actions?
I'm already enjoying some success at distributing an interworking set of actions and scripts. BUT there are several barriers that I'm sure others have thought about solving, and I'd like to get an idea...
View Articlehow do I export a .jpg file with at least
how do I export a .jpg file with at least <70kb out of photoshop?
View ArticleNeed help cleaning up a script and adding loop
I have the following script that I pieced together that basically takes the selected layer, gets its name, makes a text object with that name and then places it in a specific place using the original...
View Article