I wrote a script to retry publishing several files (until the destination files arent in use) until it works. When It is done I would like to know when it finished them. I dont think anything is wrong with it, but why wont it pause at the end after copying? I made a pastie with the whole thing here
EDIT: New working code here)