desktop alias for logoff, shutdown

Discussion in 'macOS' started by BabaG, May 2, 2008.

  1. BabaG macrumors member

    Joined:
    Jan 5, 2007
  2. HLdan macrumors 603

    HLdan

    Joined:
    Aug 22, 2007
  3. BabaG thread starter macrumors member

    Joined:
    Jan 5, 2007
    #3
    thanks HLdan. that's pretty close. would still like to know
    how to make a desktop alias, though.
     
  4. HLdan macrumors 603

    HLdan

    Joined:
    Aug 22, 2007
    #4
    Each one of the dockable icons can be dragged right to the desktop from the folder. They're not required to be ran from the Dock. It really won't matter but if you'd rather have an alias to the application just right-click on the icon and create an alias to it for the desktop.
     
  5. BabaG thread starter macrumors member

    Joined:
    Jan 5, 2007
    #5
    thanks again, HLdan. i actually know how to make an application
    alias. it's how to make one for shutdown and logoff i was wondering
    about. are those actions considered apps? if so, where do they reside?
    i just figured there would be a simpler way than adding software.
     
  6. HLdan macrumors 603

    HLdan

    Joined:
    Aug 22, 2007
    #6

    In this case Apple doesn't make the OS so you can create alias's for shutdown and logoff you will have to use 3rd party software. The dockables apps are more like widgets. Once you download them all of them are inside one big folder containing one for sleep, shutdown, logout etc...You just drag and drop the whole folder into your Applications folder. Drag any one of them to the desktop or just create alias's for each. Most people I've seen on this forum use dockables. It's much easier than modifying the system and at least it's free. :)
     
  7. BabaG thread starter macrumors member

    Joined:
    Jan 5, 2007
    #7
    thanks again, HLdan.

    so, just to be clear, there's no command line shutdown or logoff
    and/or no way to put an alias on the desktop that references it?

    BabaG
     
  8. HLdan macrumors 603

    HLdan

    Joined:
    Aug 22, 2007
    #8
    Correct.
     
  9. BabaG thread starter macrumors member

    Joined:
    Jan 5, 2007
  10. pjrobertson macrumors 6502a

    Joined:
    Nov 14, 2007
    #10
    I think there are a few ways...

    Here's a terminal script for logging off:
    http://www.macosxhints.com/article.php?story=20031102031045417

    There's the "shutdown -h" command that can be used to shutdown from terminal (you need to use sudo at the start then enter your password though)

    Another lock screen applescript:
    Open script editor and save it as an 'application' on your desktop.
    set normalCommand to "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend"

    set theQuestion to "Do you really want to lock the screen?"

    set theAnswer to button returned of (display dialog theQuestion buttons {"OK", "Cancel"} default button "Cancel" with icon note)

    if theAnswer is "OK" then
    do shell script normalCommand
    end if


    Just google something like 'shutdown shell script mac

    Edit: Just use Quicksilver's scripts , they work great :D
    See the attached files. You'll need to open them in Script Editor and save them as apps...I think
     

    Attached Files:

Share This Page