user power button to shut down mac

Discussion in 'macOS' started by amcc, Jun 10, 2010.

  1. amcc macrumors newbie

    Joined:
    Jun 10, 2010
    #1
    I want the power button to shut down a mac mini in a kiosk type environment as well as start it up. It wont be networked so no remote suggestions please.

    I have a piece of applescript that will shutdown the mac - but i want to activate this script by clicking on the power button:

    ignoring application responses
    tell application "Finder"
    shut down
    end tell
    end ignoring


    any suggestions please (searched for a few hours and found nothing)
     
  2. satcomer macrumors 603

    satcomer

    Joined:
    Feb 19, 2008
    Location:
    The Finger Lakes Region
    #2
  3. theblake macrumors newbie

    Joined:
    Apr 26, 2011
    #3
    Amcc, did you ever find a solution to this issue? I too want to have the same function for a Mac Mini inside a kiosk console. (no keyboard or mouse access)

    Actually I would rather the power button bring up the Shutdown or Restart dialogue boxes rather than go direct to shutdown.
     

Share This Page