Perspective: How to delay script run to close dock in x seconds

Ah, I forgot this entire thread was about delaying the action!

What I would do is include the delay as part of the project script as an optional argument and just sleep that long before executing the rest of the script.