Photoshop CS Scripting Guide 6IntroductionLegacy COM scripting 11.8 Legacy COM scriptingPhotoshop CS supports legacy COM scripting as long as you modify the way that you refer tothe Photoshop application object in your scripts. For example, instead of saying:Set appRef = CreateObject("Photoshop.Application")you must change the above code to read:Set appRef = CreateObject("Photoshop.Application.8.1")No other change is necessary for legacy COM scripts to run under Photoshop CS.1.9 New Features• Layer CompsNew to Photoshop CS is the ability to group layers into a "layer comp" or layercomposition.A layer comp is a snapshot of a state of the Layers palette. Layer comps record three typesof layer options: layer visibility (whether a layer in the Layers palette is showing orhidden); layer position in the document; and layer appearance (whether a layer style isapplied to the layer).Designers often create multiple compositions or "comps" of a page layout to show clients.Using layer comps, you can create, manage and view multiple versions of a layout in asingle Photoshop or ImageReady file.• Web Photo GalleryOne of the most popular features of Photoshop is the ability to create a web photo galleryout of a folder of files. You can now perform the same function through scripting.• JavaScripts get their own Scripts menuJavaScripts now join AppleScript and Visual Basic scripts as first-class citizens. You canadd your own custom JavaScripts to the Photoshop menu system. The JavaScripts youwrite are displayed in the “File->Scripts” menu item along with several pre-builtJavaScripts that ship with the product.• UI for JavaScriptNew to Photoshop CS is the ability to create graphical interface objects, such as windowsand panels, employing the JavaScript programming language. UI for JavaScripts is coveredin the JavaScript Reference Guide.• PathsAlthough Illustrator is the premier path (or vector) editing application, many users want tomodify their path items in Photoshop. This release of Photoshop allows you to manipulatethe path items and obtain path points in a Photoshop document. Functions include theability to create, modify, delete and copy paths using scripts.