Skip to main content

Shutdown Computer (script step reference)

By January 1, 2024January 25th, 2024Online Help, Troi Activator Plug-in
Activator Plug-in for FileMaker Pro

Shutdown Computer

Shutdown the computer.

SyntaxScript step badge

Shutdown Computer [ Select ; Result (error) ; Force shutdown ]

Options

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
Force shutdown (currently Windows only) force other running applications to close

Returned Result

Data type returned

Error code

Result

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

Other errors may be returned.

Originated in

Activator Plug-in 4.5

Compatibility

FileMaker Pro 17 to 2023

Considerations

If you don’t specify the Force shutdown option the computer may not shutdown, because of other programs not closing.
There is a 20 second delay before the shutdown starts.
The Force shutdown option currently does not have any effect on Mac OS.

Example

Shutdown Computer [ Select ; Result ]

This will shutdown the computer.

Shutdown Computer [ Select ; Result ; Force shutdown ]

This will shutdown the computer, forcing all programs to close.

Related script stepsScript step badge

Put Computer to Sleep
Restart Computer

Related functionFunction badge

Actr_Shutdown

Related topics

Activator Plug-in online help (overview)


Online Help Page for Activator Plug-in for 17 to 2023 –> Shutdown Computer (actrp7623) 2024-0125 15:09:02