Automic Workload Automation

Expand all | Collapse all

Compare two files with automic scripting language

  • 1.  Compare two files with automic scripting language

    Posted 05-18-2018 02:51 AM

    Hi everbody

     

    Is it possible to compare files in automic in a script with the automic script language?

     

    The example:

     

    I get all filenames in a directory and I have to proof if there are two files with the same id in the name. If there are two files I am able to move it to another directory. But until there are not two files with the same ID it shouldn't move.

     

    Does anybody have a solution?

     

    Thx

    Fabian



  • 2.  Re: Compare two files with automic scripting language

    Posted 05-18-2018 04:35 PM

    Hi

    that should be done easily with a bit scripting effort.

     

    preferably I would - as first attempt - use means of the OS as its quicker then scriptung, but if its not possible or if there is a good cause - scipting is fine too.

     

    What exactly do you mean by "with the same id in the name" ?

    Which OS are we talking about?

    Which AE version?

     

    cheers, Wolfgang



  • 3.  Re: Compare two files with automic scripting language

    Posted 05-18-2018 04:56 PM

    Its not what you asked but I have decided to use file events for this scenario as it is more transparent to users and support as to what the workflow is actually waiting for. You can easily say that the file count has to equal 2 in order to proceed to the next task.