Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.How to shutdown a Mac?
Answer: Ask the Finder via Apple Events:
Example:
dim ae as appleevent
ae=newappleEvent("FNDR","shut","MACS")
if not ae.send then
msgBox "The computer couldn't be shutdown."
end if
Notes:
Or toolbox call (Attention: This method will stop the computer
immediataly: No document asked to be saved, all applications quitting
without knowing).

Declare Sub ShutDwnPower Lib "Carbon" ()
ShutDwnPower

Feedback, Comments & Corrections




Links
MBS FileMaker tutorial videos