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

**URL:** <https://forum.inductiveautomation.com/t/perspective-how-to-delay-script-run-to-close-dock-in-x-seconds/26741>\
**Category:** Ignition Early Access\
**Created:** [July 22, 2019, 3:54am UTC](https://forum.inductiveautomation.com/t/perspective-how-to-delay-script-run-to-close-dock-in-x-seconds/26741 "2019-07-22T03:54:04Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [July 22, 2019, 5:15pm UTC](https://forum.inductiveautomation.com/t/perspective-how-to-delay-script-run-to-close-dock-in-x-seconds/26741/10 "2019-07-22T17:15:53Z")

</div>

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.

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-how-to-delay-script-run-to-close-dock-in-x-seconds/26741)._
