Thanks, but hitting F11 brings up a volume control.Don't know, but to show the Desktop, hit F11 (unless you've changed the function of that key)
View attachment 746616 I'm new to the Mac environment and working with a new Macbook Air. On my PC, I had created desktop icons for shutdown, restart, and show desktop. One click and done. How do I create these on my Mac in MacOS Sierra (latest update)? Thanks.
There's no way to restart/shutdown a Mac with by clicking on icons.
Well............ Thats not exactly true. A few minutes of Googling and I was able to do it plus I tested out a couple of other cool options.
First thing OP can do is create a keyboard shutout to perform both actions.
https://support.apple.com/kb/PH25377?locale=en_US
I created shortcuts for both Restart and Shut Down.
Next thing OP can do is use the awesome application Better Touch Tool to invoke those shortcuts using gestures on the trackpad. I set 3 Finger Swipe Left to Restart the computer and CMD + 3 Finger Swipe Left to Shut Down the computer.
Finally, OP can use Automator to create an application that invokes an Apple Script to perform these actions. That application can be saved to the desktop or the Dock to Restart or Shut Down the computer just by clicking the application.
https://www.engadget.com/2008/01/01/mac-automation-saving-automator-workflows/
The Apple Scripts to run are:
tell application "System Events"
shut down
end tell
tell application "System Events"
restart
end tell
OP, to show the desktop, use the built in trackpad gesture to perform that action.
There is a lot of satisfaction in learning how to do this stuff yourself. I've given you a start. If you need more help, post back and I'll see if I can point you in the right direction. This isn't hard; just new/different.
Thanks, dangerfish. You're right--I probably shouldn't try to turn my new Macs into Windows PCs. Still, how did you create those one-click dock items?
I referenced it above but in general:
1. Launch Automator
2. Select New Document
3. Select "Application" for new document type
4. Select Utilities
5. Select Run AppleScript
6. Paste in one of the AppleScripts I wrote above
7. Save it. You've now created an "application" that will do what you want. Put that app in the Application folder if you want and also drag it to your Dock.
The two scripts you need are written above.
Made them for you, the only thing you have to ,do is to copy an Icon to them.
[doublepost=1516305027][/doublepost]
Yup, that's how I did it right now, keep in mind you have to create a new Application for each, I was pasting other commands in the same window and saved as but still ended all three Apps do the same thing, they all three had a sleep function, when I changed the script to restart they all changed as well, odd.
Many thanks for that Justperry, I've just downloaded your files and they work perfectly.
Regards ....... Stickfly
justperry, thanks for your automator files above.
Saved them and I will use them!
(Does MacRumors have any kind of "file archive" where useful stuff is stored? If so, these three belong there!)
Justperry,
Can the same be done to log out ?
Regards ...... Stickfly
You can create an application to do exactly what he wants. I did it and put it in my Dock. One click and it shuts down.
OP, I would however question why you want to be able to shut down or restart the computer in this manner. You really dont need to be turning off your computer like you might have done with your PC. I never shut mine down unless there is an issue or a software update. I have a couple of 27" iMacs and they stay on 24x7. They do go to sleep to save energy but I never turn them off. One of them is 2009 that is still running great. I never turn off my laptop either.
Thanks Justperry.
Just wanted a quick way to log out when I need to leave my MBP to do something else at work.
Found the quickest way is to set the OS to log out when shutting the lid.
Simple.
Well, I don't do either one. I just Shut Down.
But if you log out, you obviously have to log back in.
Just putting it to sleep seems more convenient.
Is there a reason to logout instead of just putting it to sleep, don't think it makes a huge difference.