Page 1 of 1

Visual Filter with Timeout

Posted: 20 May 2013 10:08
by Reve_Etrange
Hi all,

I often use visual filter to search files in big folders, but once I have seen if the files are there or not, I don't need the filter anymore.
So, is it possible to make a Catalog script that would prompt and activate a Visual Filter for, say, 5 seconds and automatically switch it off?

Re: Visual Filter with Timeout

Posted: 20 May 2013 12:56
by LittleBiG
I can give you the draft, and you can boost it for your need.

Code: Select all

"Quick VF"
  //quicksearch by visualfilter
  filter input("Enter the search string");
  $c=get("CountItems");
  wait 5000;
  filter;
  status $c . " item(s) has been found.";

Re: Visual Filter with Timeout

Posted: 20 May 2013 13:36
by Reve_Etrange
Thank you!
For some reasons I often find it hard starting scripts from scratch, but I usually manage to tweak existing ones.

Here's a modified version that remember what tab to unfilter (if we change tab in the meantime):

Code: Select all

"Quick VF"
  //quicksearch by visualfilter
  $t = tab( "filter", input("Enter: ") );
  wait 5000;
  tab( "filter",,$t );