Code: Select all
on openField
select text of the target
-- This is not working also:
-- select text of me
-- select char 1 to -1 of the target
end openField
What is strange, when coming back from another stack field is focused for a moment, then out of focus but text is selected.
With this script in the field it works as expected:
Code: Select all
on openField
send "selectText" to me in 1 tick
end openField
on selecttext
select text of me
end selectText
Yosemite & LC 7.0.1
Marek