Get Equivalent ID Code

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

Mikaeru

Get Equivalent ID Code

Post by Mikaeru »

For what it's worth, I just released a simple utility script called Get Equivalent ID Code which might be useful to some fellow developers. It lets you interactively get the text string of a call to app.stringIDToTypeID () equivalent to a call to app.charIDToTypeID (), by pasting code copied from the ScriptingListenerJS.log file, for instance. The output format is kept identical to the input format.

Examples:
Code: Select allcharIDToTypeID( "H   " )
->
stringIDToTypeID( "hue" )

Code: Select allcharIDToTypeID( "Strt" )
->
stringIDToTypeID( "saturation" )
stringIDToTypeID( "start" )

Code: Select allapp.charIDToTypeID ("Lght");
->
app.stringIDToTypeID ("lightness");

HTH,

--Mikaeru
PhotoSpot_scripter

Get Equivalent ID Code

Post by PhotoSpot_scripter »

Thankyou! thats nice!