Tips for QTTabBar Scripting


QTTabBar and Folder Window functionalities are accessible via Active Scripting (wikipedia).
Script files automate operations of Tab and files.

Root object

Let's begin with creating the root object of QTTabBar scripting.

var qs = new ActiveXObject( "QTTabBarLib.Scripting" );

Your script communicate with QTTabBar and Folder Window through this object.

Active Tab in Active Window

var window = qs.ActiveWindow;
var tab = window.ActiveTab;

Return value

Script file can return values to QTTabBar after execution.
qs.SetReturnValue( obj );

This takes effect only when the script is executed by Command Item.

Samples and Document

Scripting objects and their members are documented here.
Samples are here.