I don't know how to script the check tab part. The best I can do is this:
Code: Select all
if (Get('#800')){focus "P2";if (<curpath> == "[pathX]"){focus "P1";#800;} else {tab ("new", "[pathX]");}} else {#800;focus "P2";if (<curpath> == "[pathX]"){#1001;} else {tab ("new", "[pathX]")}};