In ExtendScript you could get the name of an Enumeration. I used something that was based on this:
allPropertiesOfClass = EnumerationClass.reflect.properties;
//-- loop through all of these different properties
for (enumerationIndex_i = allPropertiesOfClass.length - 1; enumerationIndex_i >= 0; enumerationIndex_i--) {
//-- see if the properthy name
if (EnumerationClass[ allPropertiesOfClass[ enumerationIndex_i ].name ] == EnumerationValue) {
blah, blah, blah…
but in UXP, if you look at an EnumerationClass or an Enumerator, I don’t see anyway to even see the old numbers of the enumerations or the name that I actually want.
My goal, is just get a user understandable value. For example, if the user has a missing link, I want to be able to display the LinkStatus
=> LINK_MISSING
. If the MeasurementUnits
is POINTS
, I want to be able to see that.
Any ideas?