Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

I have been recording custom actions to perform various automations, though I am starting to require greater control which would be better implemented using some form of scripting (if this can indeed be done). I have seen "ExtendScript" has been mentioned in several places, though I cannot find that option in Photoshop.

It is important that I can easily share such scripts with other Photoshop users so that they can also benefit from them. For example, I would like to allow people to download the action scripts from my blog with relative ease.

I am creating my actions using Photoshop CS4 which allows users with newer versions to utilise them. The same would need to be so for my custom scripts.

share|improve this question

1 Answer 1

up vote 7 down vote accepted

Adobe products allow you to use AppleScript, JavaScript, or VBScript to create scripts. Functionally, ExtendScript is very similar to JavaScript - think of it as JavaScript plus some extra features.

Adobe provides a program to make scripts called ExtendScript Toolkit, which was most likely bundled with your install of Photoshop. On my computer it's in C:\Program Files\Adobe\Adobe Utilities - CS5\ExtendScript Toolkit CS5. You can use that or a program as basic as Notepad to create scripts (I use Notepad++), which you then save into C:\Program Files\Adobe\Adobe Photoshop CS5\Presets\Scripts or the equivalent Presets\Scripts folder on the Mac. In Photoshop, go to File > Scripts to find your script and run it.

Adobe's documentation is a good place to start. They have basic guides to get you started, from "Hello World" on up, and then they have more in-depth tutorial PDFs by language and version.

Sometimes, it's nice to interact with ExtendScript Toolkit's Object Model Viewer (Click Help up top, then Object Model Viewer to access it). You'll also find a link to the JavaScript Tools Guide in the Help menu...that gets you some more help with JS functions like the XML Object that are common to all CS products.

If you're looking for help online, the Adobe forums are the most populated. You can also try over on Stack Overflow, but the ExtendScript help tends to be spotty.

If you want help working with ScriptUI, Peter Kahrel's publication on it is really informative and helpful, more so than Adobe's documentation on the subject in my opinion.

If you've learned JavaScript or another language by lots of Internet searching, you'll find scripting Adobe to be a bit more challenging since it's not as common and sometimes you'll find yourself struggling to understand Adobe's documentation. But ExtendScript is really powerful and if you can get it, you'll be able to do a lot of neat things with it.

share|improve this answer
    
Thanks for the detailed response! I found the "ExtendScript Toolkit" at the path you stated, though like you I prefer to use Notepad++ for scripting. –  Lea Hayes Jan 21 '13 at 20:34
    
This is quite a good resource: kahrel.plus.com/indesign/scriptui-2-0.pdf –  Lea Hayes Jan 21 '13 at 21:38
    
Ah yes, when I saw you were working with ScriptUI I was thinking about adding that as a link. I'll add it to my post, thanks! –  Brendan Jan 21 '13 at 21:51
1  
This could definitely be a community wiki type of answer if others have resources to contribute... –  Brendan Jan 21 '13 at 21:55
    
Another alternative to creating custom scripts for Photoshop seems to be Extension Builder 2. Here is a tutorial video for it. –  Lea Hayes Jan 21 '13 at 22:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.