Skip to content

Latest commit

 

History

History
 
 

Get-Equivalent-ID-Code

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Get Equivalent ID Code

Description

“Get Equivalent ID Code” is a code utility script using the JSON Action Manager scripting library.

This stand-alone script written in JavaScript opens a dialog box with an input text field expecting the text string of a call to app.charIDToTypeID (), pasted from code copied from the ScriptingListenerJS.log file, for instance. Provided it does exist, the equivalent call to app.stringIDToTypeID () is then automatically displayed in real-time in another output text field (read-only); in some cases, more than one call (up to four) will be listed, when several (colliding/conflicting) equivalent StringIDs are available.

The output field format is kept identical to the input field format, including extra whitespace and optional elements: leading app. (Application root object) and trailing ; (JavaScript statement delimiter).

For the sake of completeness, the script works also the other way around, but it is less useful for code copied from the ScriptingListenerJS.log file, since the ScriptingListener plug-in only generates calls to app.stringIDToTypeID () for StringIDs which have no equivalent CharID.

Examples

Get Equivalent ID Code Example - "H   "

Get Equivalent ID Code Example - "Strt"

Get Equivalent ID Code Example - "Lght"

Get Equivalent ID Code Example - "Hst2"

Get Equivalent ID Code Example - "Intr"

Get Equivalent ID Code Example - "Fbrs"

Get Equivalent ID Code Example - "shapeOperation"

Get Equivalent ID Code Example - "intersect"

Requirements

This script can be used in Adobe Photoshop CS3 or later. It has been successfully tested in CS4 on Mac OS X, but should be platform agnostic.

Copyright

This Software is copyright © 2013-2016 by Michel MARIANI.

License

This Software is licensed under the GNU General Public License (GPL) v3.

Download

Download Zip File

Installation

Download the Zip file and unzip it.

Move the script to the Presets/Scripts folder in the default preset location of the Adobe Photoshop application. On next launch, the script will appear in the File>Automate submenu.