The description of Daml Script frames it as suitable for testing, feedback in Daml studio and initializing data on the ledger. But it is not discussed it in the context of performing periodic tasks against the ledger. Can it be used in that context too?
One thing that is particularly nice is that you can run a script against the HTTP-JSON server; you can off load your state management to it completely and query for what you want. This is different from a trigger where I would need to maintain them in the ACS. If I want to run something once a week or less frequently, what’s the benefit of a trigger vs a script?
For example, if I want to periodically inspect my ACS, find all templates of a give type and exercise a choice on them, say they are old invitations that I want to archive, would that be better done as a script?