Skip to main content

Put Computer to Sleep (script step reference)

By January 1, 2024January 25th, 2024Online Help, Troi Activator Plug-in
Activator Plug-in > Script steps reference > Put Computer to Sleep
Activator Plug-in for FileMaker Pro

Put Computer to Sleep

Put the computer into sleep mode.

SyntaxScript step badge

Put Computer to Sleep [ Select ; Result (error) ]


Select entire contents replaces the entire contents of a field with the result. If not checked the result replaces the currently selected portion of the field
Result (error) an error code


Returned Result

Data type returned

Error code


The returned result is an error code. If successful it returns 0. An error always starts with 2 dollars, followed by the error code. You should always check for errors.

Returned error codes can be:

0 no error
$$-50 paramErr check if your parameters are correct
$$-4131 this computer does not have suitable hardware to do this

Other errors may be returned.

Originated in

Activator Plug-in 4.5


FileMaker Pro 17 to 2023


– This script step only works on computers that support sleep.
– The script step returns before the computer has gone into sleep. Use a Pause/Resume step with 20 seconds pause, to be sure the next step is executed after the sleep.


Put Computer to Sleep [ Select ; Result ]

Put the computer to sleep. It will only wake up by the user waking it.

Related script stepsScript step badge

Restart Computer
Shutdown Computer

Related functionFunction badge


Related topics

Activator Plug-in online help (overview)

Online Help Page for Activator Plug-in for 17 to 2023 –> Put Computer to Sleep (actrp7617) 2024-0125 15:03:10