To use a script to select a tab, give the tabs object names. You use the object info palette in versions older than filemaker 11 and use the position tab of the Inspector in filemaker 11 for this.
Once you've done that, Go To Object ["TabObjectName"]// put your object name in the brackets.
will select the tab.
with GetLayoutObjectAttribute ("TabObjectName" ; IsFrontPanel), you can use a script to test which tab is currently selected by the user.
Thanks!!! I was close but no cigar.