Tuesday, January 29, 2008

v6.80.0050 - 2008-01-29 14:43

  • +++ Scripting (r)evolution is in full swing: Here's User-Defined Variables!
    Using the brand new scripting command "UserInput" you can freely define and set one or more variables that live until they are reset or the current script batch is done. The variables will be auto-replaced by their values in all arguments of all following scripts inside the current script batch.
    Obvious exception: Within "UserInput" commands no user variables are resolved (else it would not be possible to reset a variable). Obvious advice: To avoid unwanted replacements your variable names should contain some special characters that are unlikely to find outside variables, e.g. $ or %. In other words, if you call your variable "e" you might run into some surprises... ;-)

       Syntax: userinput [variable name], [caption], [default value]
         variable name:        required, anything goes, case matters
         caption (for dialog): optional, anything goes
         default value:        optional, anything goes

       Example:
         ::userinput $i, Enter increment start value, 01::rename , File-<#$i>

       If you run this script batch, you'll get an input dialog where you can enter some value, say 007. The following command will then rename the currently selected file(s) to File-007.ext, File-008.ext, etc.

    No time now for more examples, but believe me, this is an efficiency volcano!

  • + Scripting got two new commands:
      - HighLight and Box
        Action: Highlight/Boxcolor the current tree folder.
        Syntax: highlight/box [|rrggbb]
           Pass nothing to turn any current highlight off.
        Examples:
           ::highlight FF0000 = set very red highlight
           ::highlight        = remove any highlight
           ::box eeddcc       = set pale brownish box
           ::box              = remove any box color

  • * Scripting command "SelPos" has been enhanced: Now you can define positions relative to the currently focused item.
      Syntax: selpos [[|+|-]position]|a|i|f
      Examples:
         ::selpos 1  = select first item in list
         ::selpos 2  = select second item in list
         ::selpos +1 = select the next item
         ::selpos +5 = select the item 5 positions after current
         ::selpos -1 = select the item before current
      Examples for some further enhancements:
         ::selpos    = deselect all
         ::selpos a  = select all
         ::selpos i  = invert selections
         ::selpos f  = select all files