Table of Contents

Introduction
Who Should Read This?
How Does It Work?
Download(s)
System and Software Requirements
Adobe Photoshop Reserved Words

Tutorials
Overview
  1. Starting a Flex Project
  2. Hello World Panel
  3. Placing the CSXS Library

  4. Shortcut Buttons Panel
    1. JavaScript
    2. Design the Panel
    3. ActionScript
    4. Photoshop Persistent
    5. CSXS Logger AIR Debugger (Optional)

  5. Setting Up Script Listener

  6. Color Picker Panel
    1. JavaScript
    2. Design the Panel
    3. Find Character ID Code to Register Events
    4. ActionScript
    5. Create Custom Icons

  7. Flickr Search Panel
    1. Design the Panel
    2. Create a Flickr Service
    3. Design a Custom Module
    4. Modify Panel's Properties
    5. Connect on Preferences

  8. Per Layer Metadata Panel
    1. View Metadata
    2. JavaScript
    3. Find Character ID Code to Register Events
    4. Designing the Panel
    5. ActionScript
    6. Using Photomerge
Other Samples
Best Practices
Frequently Asked Questions
Acronyms and Definitions
Links
Adobe® Photoshop® Panel Developer's Guide

Setting Up Script Listener

The Setting Up Script Listener tutorial will highlight finding the character ID code associated with events in Adobe Photoshop. The character ID code will be used for registering and unregistering events to be monitored. Note: For more information, see Adobe Photoshop Reserved Words. To obtain the character ID codes, a plug-in called Script Listener will produce a JavaScript (JSX) output log onto the user's desktop based on the user's events in Adobe Photoshop. It works very similarly to the Actions panel found under Adobe Photoshop's Window menu. The difference is that the user is able to view JavaScript code, optionally modify the code, and run the code over and over again. The JavaScript (JSX) output log can be executed through ExtendScript. To enable the plug-in, the developer will place the Script Listener plug-in from the Adobe Photoshop Utilities folder into the Adobe Photoshop Plug-Ins folder. The result is a JavaScript (JSX) output log showing the functions and character ID code of the events committed by the user.

Instructions:

  1. To record actions on Adobe Photoshop, copy the ScriptListener plug-in from the Utilities folder under the Adobe Photoshop CS5\Scripting\ folder into the Plug-ins folder under the Adobe Photoshop CS4 folder located under:
    • Applications for Macintosh
    • Program Files for Windows
  2. If ScriptingListenerJS.log is on the Desktop, Rename or Delete the file.