action sleep

action sleep Structure: Put the computer to sleep.

action sleep structure
seconds integer: optional

Description

If the computer is powered on and awake, puts the computer into sleep mode. The next action will not be performed until the computer next wakes up or powers on.

No running process can block sleep. This action mimics the user selecting sleep from macOS's Apple menu.

Field

seconds

seconds to sleep before waking up.