I may be oversimplifying...if so, please forgive me.
Would you achieve what you're after by setting the Field Behavior of ROLODEX::CompanyName to "Select entire contents of field on entry" ? In FMP8, it's under Format>Field/Control. Not sure where it would be in FMP10.
Is this what you are after?
that is essentially what i am trying to accomplish, but i would prefer that the entire contents are selected only the first time that i enter data into the field and that any subsequent modifications of hte field would not select the entire contents.
if i just run the script itsel, it works correctly and goes to the company name field and selects the entire contents. if i set the script trigger to execute on "modify" then it also works correctly but it then won't et me enter all of the information i want in the first field because as soon as i enter a single character it runs the script that takes me out of the original field and into the target field.
there is something about the execute on object exit command that runs the script and then adds a step that functions as the equivalent of hitting the return or enter key or running a commit record type step because i have discovered that the script step does actually go the the field and select all of the contents but it is only for an instant an then it exits the field without any aditional input.
does anyone know why this happens? .....help?
FileMaker Script triggers White Papers -
The OnObjectExit trigger is a “pre”-processing trigger. This means this trigger
executes a script before the event has been processed.
Since the event you are dealing with is "Exit" it looks like your script gets triggered before the triggering field is really exited. After your script finishes the OnObjectExit trigger return the focus back to the original field and processes the exit.
that explains why it is not working as i had expected. you just saved me many hours of tinkering to try and figure it out. i will have to see if i can come up with another way to accomplish the same task now...