No announcement yet.

Is it possible to define alignment overrides with scripts?

  • Filter
  • Time
  • Show
Clear All
new posts

  • Is it possible to define alignment overrides with scripts?

    I am using a script to compare two folders and copy orphan files from right to left.
    I exclude "*.log" files and I can do this with a script command.
    But I have not been able to say that left "*.log.rar" correspond to right "*.log.gz".
    I have found a workaround, that is in interactive mode I saved a session and then in the script I load that session.
    But I would like better to be able to specify EVERYTHING in the script.
    Did I miss this script command or it is not available?
    If it is the latter, please consider to add this to my wish-list.
    Please, add to my wish-list the idea to make so that with a script I can do ANYTHING that I can do in interactive mode.
    So, is it possible to add ALL commands the are available in interactive mode so that are available also in scripting mode?

    Thank You very much and regards

    Rodolfo Giovanninetti

  • #2

    BC4 does not support the alignment overrides within the scripting language. You can save an empty Folder Compare session with the alignment pre-configured in the graphical interface. Script can then load the session, then load a pair of folders into that session with those session settings:
    log c:\log.txt
    load "session with Alignments"
    load "c:\folder1" "c:\folder2"
    expand all
    folder-report ...

    Or as you've found, you can pre-set an entire session and load it into a single load line.
    Aaron P Scooter Software