Automatically running commands upon opening Terminal

Discussion in 'macOS' started by gtr053, Aug 23, 2010.

  1. gtr053 macrumors member

    Joined:
    Jan 2, 2010
    Location:
    Tuscaloosa, AL
    #1
    Is there any way to have Terminal automatically run a command each time it is opened? I want to always have my background as my screensaver with the command
    Code:
    /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background &
    and I have made an alias for the command so that I can just type in ss, but I have to type it in every time I open up terminal. I'd like to have Terminal start at login in the hidden state and run my screensaver background command automatically. Any ideas? :confused:
     
  2. gtr053 thread starter macrumors member

    Joined:
    Jan 2, 2010
    Location:
    Tuscaloosa, AL
    #2
    Automator?

    Or perhaps anyway to automatically run a workflow in Automator and then quit the application?
     
  3. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #3
    Terminal-->Preferences-->Settings-->Shell. Check the Run Command box and enter

    Code:
    /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background &
    
    in the adjacent box.
     

Share This Page