I try to enter a value in text field.
It works, the text field seems to take the new value but in fact this new value is not stored.
It seems that I have to set the focused to true before changing the value but I can’t get this damn focused to switch to true !
tell application “system events”
tell process “myapp”
tell window “theWindow”
tell text field 1
set focused to true – error
set value to “test”
any idea ?
I’ve tried set value to “test” & return too, but it seems that I really need to get this “focused” to work !