VBScript Select Question

AB, I think he asked because 11.8.1 introduced DOpus.listers.lastactive for fetching the current/last active lister.
I don't think it is documented anywhere that listers(0) actually should be the foreground/last active lister, but it
is the first of n listers.

Based on the docs I think you can write "cmd.SetSourceTab DOpus.listers.lastactive.activetab" to achieve
the same in more recent versions.

@tbone, if you mean that last part, then I don't really see how it could be due to the
second line in this post.

Good point @myarmor. Using DOpus.listers.lastactive instead of DOpus.listers(0) should now be preferred.

[code]@script vbscript

' Demonstrates the use of SetSourceTab DOpus.listers.lastactive.activetab
' to force subsequent commands to operate on the foreground lister

Function OnClick(ClickData)
Set cmd = ClickData.Func.Command
cmd.SetSourceTab DOpus.listers.lastactive.activetab
cmd.Deselect = False
cmd.RunCommand "Select ALL"
End Function[/code]
Regards, AB

Thanks guys, I just didn't realize the usage from a floating toolbar. o)