Getting number of tabs

Discuss and share scripts and script files...
Post Reply
Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Getting number of tabs

Post 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...
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Getting number of tabs

Post 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");

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Getting number of tabs

Post 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");

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Getting number of tabs

Post by Marco »

:facepalm: so it's official, I'm getting blind... :mrgreen:
Thanks a lot!!
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Getting number of tabs

Post 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.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Getting number of tabs

Post 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

Post Reply