Hello Brett,
You can use native Java properties and methods of the CTabFolder control to accomplish your task. Here is an example demonstrating how to click a tab by its name:
[JScript]
function Test()
{
var obj = Sys.Process("Process").SWTObject("Shell", "Application").SWTObject("Composite", "", 5).SWTObject("Composite", "").SWTObject("CTabFolder", "", 6);
ClickTab(obj, "Tab 2");
}
function ClickTab(objCTabFolder, strTabName)
{
count = objCTabFolder.getItemCount();
for (var i = 0; i < count; i++)
{
TabItem = objCTabFolder.getItem(i);
if (TabItem.text == strTabName)
{
objCTabFolder.Click(TabItem.x, TabItem.y);
}
}
}