ZTree.com  | ZTreeWiki  | ZEN  | ZEST  | About...  

 Index   Back

[Notice] ZBar Script Host ZAAP   [Notice]

By: Ian Binnie   Homepage   Sydney  
Date: Apr 02,2009 at 02:43
In Response to: [Notice] ZBar Script Host ZAAP (Martijn Coppoolse)

> As usual, I got a bit carried away in my tendency to make everything
> all-purpose, and it turned into a generic script host. So now this new
> ZAAP makes it possible to evaluate script expressions from the Ctrl-Y
> Assist command line, as well as run one or more scripts whenever zbar.dat
> changes.

I gave this a try, and it seems like a good idea, as it makes it possible to script with ZAAP without building the message loop etc.

It is rather slow (3:05 for 2478 files). Part of this is in ZTreeWin, but there would be a contribution in the host. This is fast enough for manual operations, but not Ctrl-Y. I normally poll my ZAAP at 100-250mSec, which is human reaction time.

My latest development detects the start of a Ctrl-Y, and drops polling to 3mSec.
The Ctrl-Assist command only needs to be compiled once, then it can be applied for the rest of the sequence. It also helps to minimise screen updating.

> I've included a s(i|a)mple RegExp script, which allows for a new
> (Ctrl-)Y assist command 'match()', which will tag any file whose
> name matches the , and untag any non-matching file.

This presumably relies on the RegEx in Java Script. I don't know this, and if people were going to use any beyond the basics would need a pointer to the documentation.

I have about 4 versions of grep, all having different RegEx conventions.

391 views      
Thread locked
 

Messages in this Thread

 
82,796 Postings in 10,445 Threads, 196 registered users, 18 users online (4 registered, 14 guests)
Index | Admin contact |   Forum Time: Sep 9, 2010 - 5:27 pm CDT  |  Hits:5,288,817  (2,782 Today )
RSS Feed