photoshop-script

Photoshop script: copy text layer from one document to another

How can I copy text layer (with all its effects) to a new document, using script? ...

Convert a Photoshop Action to a Plug-In?

Is there a way to easily convert and package a Photoshop Action into a plug-in? Some of the techniques are essential to my business which is why I would like to distribute a plug in vs. an Action or script. Thanks you for any help you can offer. ...

How to load an image in active document? (Photoshop Scripting)

Hi, I am new to photoshop scripting. I want to load an image image (from my hard disk) into the active document as a new layer with positioning. How can this be done? Can somebody please share the code? Thanks ...

How to define percentage canvas increase in photoshop javascript

I'm a javascript novice, I have this bit of code in a jsx script that I would like to resize the canvas +20 percent on both horizontal and vertical sides. resizeCanvas = docRef.resizeCanvas(curWidth + 20, curHeight + 20, AnchorPosition.MIDDLECENTER); 20 refers to whatever unit the ruler is set to. (inches, pixels, centimeters, etc). ...

Using JavaScript scripting in Adobe Photoshop,how to save some layers as same size?

I have script to save some layers. But it's save as original layer size. I want to save layers as same costom size. Do you know or have a script like this? ...

photoshop javascript scripting question

This following script almost does what I need. What I'm trying to do is go through the opened documents, 139 of them, and save them as jpeg. However what it's lacking is moving from one opened document to the other, so it saved the same image over 139 times. I assumed doc.close() would close the opened document and give a new one focus, ...

What is action ID in Photoshop script??

Hi all. I read a tutorial of photoshop scripting, and I can't understand this line. //get action ID cTID = function(s) { return app.charIDToTypeID(s); }; sTID = function(s) { return app.stringIDToTypeID(s); }; I think these codes are call Photoshop actions, but I don't have any references, so I can't really understand how to use t...

Actionscript security sandbox violation

I am writing a Photoshop plugin as an ExtendScript (Javascript) file, that then loads up a Flash window, which I will call plugin.swf - My plugin.swf file uses an element to POST to a certain URL. When I load plugin.swf with Internet Explorer, the HTTP POST is completed successfully. When I load plugin.swf via the Javascript (which is...

Getting an irregular-shaped object's pixel area in Photoshop

Is there a way to get an oddly-shaped object's pixel area in CS5? Eg. Circle/ellipse. Or, if there's some easy-to-automate way to do it outside of Photoshop. I know it's possible to use a magic wand selection and see the height+width in the info panel, but that only works accurately for rectangles. Thanks!! ...