APM Apple Script

Is there anyway to use AppleScript to shutdown restart or suspend the mac?

Joe

Joe,

Welcome to MacScripter. The applescript code to restart your mac is fairly complicated :wink: Try this:

tell application “Finder”
restart
end tell

–this script was automatically tagged for
–color coded syntax by Script to Markup Code
–written by Jonathan Nathan

Replace ‘restart’ with ‘shut down’, or ‘sleep’ to achieve those functions.

Andy