I want to make an applescript that taps the apple in the corner, taps shut down, and then taps shut down. I can't record it, since it actually involves shutting down the computer, making the script not being saved.
How to make automator run an applescript that turns of mac
applescriptautomator
Best Answer
You can use the following in an AppleScript to shutdown the system:
If you really want to click the menu items you can go straight to clicking the "Shut Down" button with the following:
Note: I've add the
¬
Line-Continuation Symbol to keep from having to horizontally scroll to see the entire line, just remove it and place it all on one line in the script if you want. If you want to actually bring up the Shut Down message change"Shut Down"
to"Shut Down…"
.