Page 1 of 1

Getting number of tabs

Posted: 21 Nov 2011 20:17
by Marco
As the title says, how is it possible to obtain the number of tabs opened in the current pane? get doesn't seem to do the trick...

Re: Getting number of tabs

Posted: 21 Nov 2011 20:38
by Stefan
In the help under "Scripting Commands Reference" there you find tab() command.

Try this in the address bar
::msg tab(,"c");

or more future proof
::msg tab("get","c");

Re: Getting number of tabs

Posted: 21 Nov 2011 20:43
by serendipity
Marco wrote:As the title says, how is it possible to obtain the number of tabs opened in the current pane? get doesn't seem to do the trick...
Searching "Help on scripting commands" you'll find that the command "tab" will do it. Could you please do a thorough search first?
Anyway, this will do it:
text tab (, "count");

Re: Getting number of tabs

Posted: 21 Nov 2011 20:44
by Marco
:facepalm: so it's official, I'm getting blind... :mrgreen:
Thanks a lot!!

Re: Getting number of tabs

Posted: 21 Nov 2011 20:47
by Marco
serendipity wrote:
Marco wrote:As the title says, how is it possible to obtain the number of tabs opened in the current pane? get doesn't seem to do the trick...
Searching "Help on scripting commands" you'll find that the command "tab" will do it. Could you please do a thorough search first?
Anyway, this will do it:
text tab (, "count");
Honestly, I always RTFM before posting, I must have passed over that line on page #361... I for sure didn't do that on purpose.

Re: Getting number of tabs

Posted: 21 Nov 2011 21:19
by serendipity
Marco wrote:
serendipity wrote:
Marco wrote:As the title says, how is it possible to obtain the number of tabs opened in the current pane? get doesn't seem to do the trick...
Searching "Help on scripting commands" you'll find that the command "tab" will do it. Could you please do a thorough search first?
Anyway, this will do it:
text tab (, "count");
Honestly, I always RTFM before posting, I must have passed over that line on page #361... I for sure didn't do that on purpose.
No problem, was just putting it out there for others too. :D