One click icons for shutdown, restart, and show desktop?

Discussion in 'Mac Basics and Help' started by gogreen1, Jan 12, 2018.

  1. gogreen1 macrumors regular

    gogreen1

    Joined:
    Nov 20, 2017
    #1
    icons.PNG 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.
     
  2. Gregg2 macrumors 603

    Joined:
    May 22, 2008
    Location:
    Milwaukee, WI
    #2
    Don't know, but to show the Desktop, hit F11 (unless you've changed the function of that key)
     
  3. elf69 macrumors 68020

    elf69

    Joined:
    Jun 2, 2016
    Location:
    Cornwall UK
    #3
    windows to show desktop is windows key plus D.

    Using automator there may be a away to create an icon or desktop shortcut.
     
  4. gogreen1 thread starter macrumors regular

    gogreen1

    Joined:
    Nov 20, 2017
    #4
    Thanks, but hitting F11 brings up a volume control.
     
  5. MedRed macrumors member

    MedRed

    Joined:
    Jun 9, 2007
    #5
    fn + F11
     
  6. chabig macrumors 601

    Joined:
    Sep 6, 2002
    #6
    Take a look in System Preferences > Trackpad. Your Air has a big beautiful trackpad with many simple gestures. Learn them. They are great. One is for showing the desktop.
     
  7. justperry, Jan 14, 2018
    Last edited: Jan 14, 2018

    justperry macrumors G3

    justperry

    Joined:
    Aug 10, 2007
    Location:
    In the core of a black hole.
    #7
    There's no way to restart/shutdown a Mac with by clicking on icons.

    If you want your Mac to restart without a popup dialogue you can do this by holding the option key while clicking on the shutdown or restart under the Apple menu.
     
  8. dangerfish macrumors 6502

    Joined:
    Aug 28, 2007
    #8
    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.
     
  9. justperry, Jan 14, 2018
    Last edited: Jan 15, 2018

    justperry macrumors G3

    justperry

    Joined:
    Aug 10, 2007
    Location:
    In the core of a black hole.
    #9
    Yes, I know, I didn't really want to say you could do it this way, it's not really for beginners/newbies.
    But since you started I will explain this in short.

    Open script editor, paste...

    tell application "System Events"
    shut down
    end tell

    ....Into the area, under the file menu click export, choose export as an application run only and safe it on your desktop.
    Also do this for the restart option.
    So, you have now two Apps called ShutDown and Restart on your desktop but the icons are the same.
    If you get info on the App you'll see something like in the screenshot below, click on the icon, it changes to blue, next choose a nice icon on an app that you want to set as the icon for the one above, again get info, click on the icon in the get info panel, it's blue, copy that one, next click on the other info panel and paste it into that one.

    It's not hard if you know the tricks, for a newbie it's fairly hard.


    Screen Shot 2018-01-14 at 21.27.26.png

    Edit: WTF, it only works just after login, at least sleep works just after login, not later, and the other ones don't work either, tried without run only but doesn't work, will try later on again.
     
  10. gogreen1 thread starter macrumors regular

    gogreen1

    Joined:
    Nov 20, 2017
    #10
    Thanks, all, for the ideas. I'll experiment and see what works best for me.
     
  11. murnau macrumors regular

    murnau

    Joined:
    Oct 21, 2017
    Location:
    Bulgaria
    #11
    Only shortcuts
    cmd+alt+ctrl + eject - forces to shut down
    cmd + ctrl + eject - restart
     
  12. dangerfish macrumors 6502

    Joined:
    Aug 28, 2007
    #12
    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.
     

    Attached Files:

  13. gogreen1 thread starter macrumors regular

    gogreen1

    Joined:
    Nov 20, 2017
    #13
    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?
     
  14. dangerfish macrumors 6502

    Joined:
    Aug 28, 2007
    #14
    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.
     

    Attached Files:

  15. justperry macrumors G3

    justperry

    Joined:
    Aug 10, 2007
    Location:
    In the core of a black hole.
    #15
    Made them for you, the only thing you have to ,do is to copy an Icon to them.
    --- Post Merged, Jan 18, 2018 ---
    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.
     

    Attached Files:

Share This Page