Thursday, March 17, 2011

Week 8- Introduction to Photoshop Scripting

Photoshop scripting will provide me with a better understanding of Photoshop in general. It is possible to script in three different languages to change aspects in Photoshop, although they are specific to certain platforms like Windows or MacOS.

AppleScript works only with Apple computers, hence the name, and contains the file extension (.scpt).
VBScript works only with a Windows Operating System. Its file extension is (.vbs).
JavaScript can work on both Apple or Windows. It has the file extension .js or for ExtendScript (.jsx). Javascript files should always be displayed from within Photoshop because that is the only way to view them using Photoshop. Trying to open them from a folder won't bring Photoshop up. The Photoshop scripting manual recommends providing JavaScript files with the formatting of (.jsx) due to the capabilities of ExtendScript.
Visual Basic is a similar to a regular program file. It is can be loaded whereas the other formats are text only, with the exception of AppleScript, which will only run once it is compiled.

Given all these formats, the one I will try to use the most will be JavaScript or ExtendScript, but just in case I would work on a project on a Mac, I will experiment with the others as well.

The way to locate scripts in Photoshop is to go to File--Scripts. A list of the scripts that have been made can be displayed in the Scripts dropdown panel only if they are saved in Photoshops CS5 --- Presets---Scripts on the computer. Only the saved name of the script can be displayed in the dropdown. Unfortunately, users can't add scripts to Photoshop will it is in use, but they can be added if one restarts Photoshop. The Browse function under the Script dropdown is great if scripts are in a different location than the Script folder. Browse makes JavaScript files available for importing.

This documentation is what I am currently reading to learn about Photoshop scripting. It is the source of my information for this blog post.
http://www.adobe.com/content/dam/Adobe/en/devnet/photoshop/pdfs/photoshop_cs5_scripting_guide.pdf

No comments:

Post a Comment