Skip to main content
Inspiring
January 10, 2022
Question

c harIDToTypeID "is not a function"

  • January 10, 2022
  • 12 replies
  • 799 views

Since the latest update, previously working code containing the application Method 'charIDToTypeID' fails "charIDToTypeID is not a function".

Any ideas why and how to fix it?  I have a LOT of functions that use it.

 

Also the error "ActionDescriptor does not have a constructor" is occurring in code that previously worked OK.  Hopefully I can address that using Script Listener, but I do notice that it is showing changes (expansions) to the code from previous versions of PS.

 

FWIW, 'stringIDToTypeID' works OK.

 

PS 23.1.0

Win10

e.g.: var idslct = charIDToTypeID ( "slct" );

This topic has been closed for replies.

12 replies

Stephen Marsh
Community Expert
Community Expert
January 10, 2022

You show a 4 char code, the "usual" issue with three character codes missing the 4th empty character, such as 'All ' where the space is included as the 4th character.

 

Have you restarted Photoshop and or reset preferences?

Kukurykus
Legend
January 10, 2022

I don't experience this problem.