Is there anyway that I can monitor when the transfer of a set of files into a folder is complete?
For example, I'm transferring 100 files from Folder A to Folder B. How can I set a flag (e.g. variable) that says Folder B is no longer receiving any new files?
There's probably several ways to do this, but one (untested) is to create a Macro with a Periodic trigger of, say, 1 min, to count the number of additional files in the folder. You could make it less, but unless it is super important, I would not go less than 10 sec.
May I ask for a clarification. Are you using a KM command to copy the files, or some other method? If KM is the entity issuing the copy, that may make it easier.
Automator? Hmm. In Automator you can run a shell script. Shell script commands can be used to trigger KM macros. So you could send KM a message from within Automator that you have finished copying files by performing the correct command inside Automator to trigger a KM macro. This could work, based on what you've told me so far. but if this won't work for you, tell me why, and we can find a way to make it work.
That's a great suggestion. Automator performs actions sequentially. All I need is to add an applescript calling for a KM macro after the "move" or "copy" command in Automator. When Automator finished the file transfer, it will execute the next step calling for the applescript that activates the KM macro.