Script to toggle "visual filter by selection" ON/OFF?

Discuss and share scripts and script files...
Post Reply
ghost zero
Posts: 842
Joined: 26 Apr 2010 17:48

Script to toggle "visual filter by selection" ON/OFF?

Post by ghost zero »

Can anyone make me a script to toggle "visual filter by selection" ON/OFF? I want to make a toolbar button for it.

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Script to toggle "visual filter by selection" ON/OFF?

Post by highend »

Code: Select all

#359;
One of my scripts helped you out? Please donate via Paypal

kiwichick
Posts: 675
Joined: 08 Aug 2012 04:14
Location: Windows 10 Pro 22H2, 150% scaling

Re: Script to toggle "visual filter by selection" ON/OFF?

Post by kiwichick »

Or if you'd rather have an actual script for it:

Code: Select all

"View selected items (toggle)"
//Toggle between Selected items and All items
   $tab= tab("get","term");
   IF($tab Like "*|*") {
   filter;
   }
   ELSE{
   filter '"' . getinfo("SelectedItemsNames", """|""") . '"';
   }
Windows 10 Pro 22H2

Post Reply