Perspective run script after inactivity timer elapses

That's not how it works.
lastActivity is a datetime that's automatically updated the last time the user does do something. If you want to react to that change, it's up to you. So, if you want to close a dock, then start a thread after the property changes that waits 60 seconds, checks if the last activity still hasn't changed from the value it was last set to, and then kicks off whatever action you want.

1 Like