I'm not sure this would be classed as a bug, because it looks to me like the engine is controlling "normal" behaviour. i.e. Normally when you click in a field the insertion point is placed at the point where you click with the cursor, so this is cancelling the select text script immediately after the mouse is released. I went back to LC 5.5.5 and it shows the same behaviour.
If you click ON the text, you will see the text become selected momentarily and then it is de-selected as the mouse button is released, unless you move the cursor away from the text before releasing the mouse button, in which case the text stays selected.
No mouseUp message is received by the field, card or stack so I think the engine is using the mouseUp to set the insertion point to where it would normally be expected, I think this also explains why send in time works, but another option is to check for selectionChanged, because that's exactly what happens when the mouse is released, this works reliably for me;
Code: Select all
on openField
selectAllText
end openField
on selectionChanged
selectAllText
end selectionChanged
command selectAllText
select the text of me
end selectAllText