Select textnotetype by string?

Any idea how i may get the text note type id from its name as a string?

This should do it.

First we gather the text note types, figure out the names, get the index of your specified name and get the element id of the type.

2 Likes