Screensavers, Desktops, and Terminal.

Discussion in 'Mac Programming' started by Cyberpawz, Feb 8, 2006.

  1. macrumors newbie

    Cyberpawz

    Joined:
    Dec 11, 2004
    #1
    Ok this command allows you to create a screensaver as your desktop...

    nohup /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background

    How can I create a simple little program from the menubar allow me to turn on, or off this command without going through the terminal each time I want to do it?

    Any help would be appreciated... I have XCode downloaded so if I need to I'll make and compile something if I have to, I just don't know how to go through the terminal and do it myself.
     
  2. macrumors 68030

    superbovine

    Joined:
    Nov 7, 2003
    #2
    it is something like this. make an applescript..

    how to write an applescript

    http://www.mactipscafe.com/tip021/

    Code:
    tell application "Terminal"
    activate
    do script with command "nohup /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background"
    end tell
    
    my syntax maybe a little of. I am not sure on the quotes, but yeah it something like that.
     
  3. macrumors 603

    Mechcozmo

    Joined:
    Jul 17, 2004
    #3
    Do you run the same command to swap the value from true to false and from false to true?
     
  4. macrumors 6502

    Joined:
    Oct 1, 2005
  5. thread starter macrumors newbie

    Cyberpawz

    Joined:
    Dec 11, 2004
    #5
    It crashes the desktop in 10.4.4 after it comes back from sleep, not my idea of a good game plan.
     

Share This Page