Why does showEnhancedWindow/Alert return text of labels?

Apparently, both methods return the content of labels, too. I think it might be better if the code checks the editable property and only return the text for those NSTextFields where it is true.

Why make things more complicated?

It’s a single if statement in the source, which would make the result of calling the handler a lot more useful because it doesn’t contain the labels that have to be weeded out manually. But it’s of course your call.

That just adds complication the user, by breaking the relationship-by-index in the results. It would also break an enormous number of existing scripts.

Thanks for pointing that out. From the code, I didn’t see (with my little AS knowledge) that the values are returned in a particular order.