i'm strungling a bit on how to hilite a line of a field by pushing the first letter of a string.
it's a field with email adresses, and of course you can just click on a line and it will be hilited.
But some people like to push on a letter corresponding to the first letter of a name.
Now i searched a lot of threads on the forum, but....
I tried a few thing and it's reacting to the key, but selects the whole field instead of just a line, and better is if a letter is pushed again it jumps to the next line beginning the caorresponding letter:
Code: Select all
on keyDown pKey
#put pKey
set the itemDelimiter to pKey
#select after chunk & pKey of field "To"
#set the hilitedLine of field "To" to pKey
select text of the target
pass keyDown
end keyDown
Thanks !