Adding startup programs

Hello,
I downloaded some programs that need to be started up when my computer startup. These aren't typical mac .app applications but programs that run from the shell as a background process in such. In linux I would put a LSB script and put it in my /etc/init.d/ directory and use chkconfig to add it when the computer starts up however mac does not have that directory or that program.
So how do I add executables to be started up when my computer does?
Thanks!

I found this example:
Compose an AppleScript with the following code:
do shell script "sudo pmset halfdim 0" with no tell block.
Save it as an application, no startup screen, somewhere on your hard drive.
Then, under System Preferences --> Accounts, assign this new application as a Login Item. You may have to tweak the script for username/password compliance, but that code is pretty close to what you will need.
Compiling AppleScript scripts from Terminal command line
You can compile an AppleScript script from Terminal or a shell script by using the osacompile command.
Example:
osacompile scriptname
For more information on using osascript, see the man pages in Terminal, by typing: man osascript

Similar Messages

  • Is there a way to manage startup programs to help find conflicts?

    I recently installed a program called Print It! and have found that it locks up when I try to open its help window. This problem doesn't occur if I do a safe boot, so I'm assuming there is some conflict with programs that are automatically loaded at startup. I'm trying to isolate the problem so I'm trying to find a way to easily enable/disable the startup programs. Is there some software program that will help me do this? I don't really want to remove and reinstall startup programs using the controls in System Preferences. Thanks.

    So just what did you have in mind?
    I'm trying to find a way to easily enable/disable the startup programs.
    I don't really want to remove and reinstall startup programs using the controls in System Preferences.
    That includes enable/disable login items?
    Some programs aren't in login items but do get added to launchd, some programs like TechTool Pro have their own method and run in the background.
    There is no central place to look at a list of all the startup items; or all the launch services and background tasks (shame, too).
    Use to be there was a Startupitems in System/Library but no more, or not used as much. Things can be in folder locations, or from where they are installed. What you want is like the old "Extension Manager" which doesn't exist.
    You might look and see features and tools in SL Cache Cleaner
    http://www.northernsoftworks.com/snowleopardcachecleaner.html

  • I added a program but somnehow ended up with "searchqu" as my search engine, how do you get rid of it?

    I added a program that somehow put the search engine "searchqu" on my computer. How do you get rid of it? I looked up in the web engines and it is not listed. A blog board I read says it is coming through google chrome that it has to be uninstalled... any ideas?

    Searchqu gets installed if you don't opt-out of the installation when you install a 'free' app from bandoo.com which provides free emoticons.
    If you have this app on your system now, uninstall it first, otherwise searchqu will reappear again after you complete the following steps.<br><br>
    To revert to Google as your preferred search engine, please do the following.<br><br>
    #In the location bar, type '''about:config''' and hit Enter.<br><br>
    #In the filter at the top, type: '''keyword.URL'''<br><br>
    #Double click it and remove whatever's in there and replace it with http://www.google.com/search?q=<br><br>
    #In the filter at the top again, copy/paste the following (remove keyword.URL first): '''browser.startup.homepage'''<br><br>
    #Right click it, choose '''Modify '''and then click '''Reset'''.<br><br>
    #Close the tab.<br><br>
    #Click the Firefox button, go to Add-ons, then Extensions and remove these add-ons if they're in there: '''Windows iLivid Toolbar '''and '''SearchquToolbar '''.<br><br>
    #Next, open Windows Explorer and navigate to '''C:\Program Files\Mozilla Firefox\searchplugins'''. In there, delete the following: '''SearchquWebSearch.xml'''<br><br>
    #Go to Add/Remove Programs and look for '''Windows iLivid Toolbar '''and '''SearchquToolbar '''again. Remove if found. You might possibly find a reference to "Web Search" (searchqu) in Add/Remove Programs too. If so, remove it.<br>
    The URL to add in "keyword.URL" becomes a link in this post, so right click it and choose "Copy Link Location" to copy it to the Windows clipboard. Then hit CTRL+V to paste it. Saves you having to type the whole thing.
    Next, open a Command Prompt (Run As Administrator) and type the following: '''regsvr32 /u searchqudtx.dll''' and hit Enter. If you get an error message, you'll have to enter the full path. Do a Windows search for '''WI3C8A '''and then right click it and choose Open Containing Folder, or Open File Location. Then make a note of the full path.
    '''To reset your home page, do the following'''.<br><br>
    * Go to the site you want to set as your homepage.<br><br>
    * Click the Firefox button, go to '''Options '''| '''Options '''| '''General'''.<br><br>
    * Make sure it says "''Show My Homepage''" in the first dropdown menu.<br><br>
    * Click the button called "'''Use Current Pages'''" to set the homepage to the one you have on the screen.<br>

  • [Solved] startup programs problem.

    Hi!
    I cannot add things to my session, startup programs. could this be because I am not root? My user is added to all the others like audio, video and network. Cant remember if my user is added to more. How can I access the session (startup programs) in system-preferences-session, as a root? I cant add fusion-icon to my start list, and I can only start fusion-icon by root terminal. Anyone know how to add fusion-icon as a startup program?
    Thnx^^
    Last edited by AndSmi (2007-12-30 18:44:06)

    If you mean what Desktop Environment, then I'm using gnome lastes release. With can't add I mean that everything I put in, dissapears after I've gone out of the session program. Abselutely nothing happens when I try to run fusion-icon in Alt+F2. Not even an error comes up, just nothing. Just as if I never typed anything.
    When I run fusion-icon in terminal thats not root, I get this:
    [andy@andylaptop ~]$ fusion-icon
    * Detected Session: gnome
    * Searching for installed applications...
    Traceback (most recent call last):
    File "/usr/bin/fusion-icon", line 57, in <module>
    from FusionIcon.interface import choose_interface
    File "/usr/lib/python2.5/site-packages/FusionIcon/interface.py", line 23, in <module>
    import start
    File "/usr/lib/python2.5/site-packages/FusionIcon/start.py", line 36, in <module>
    config.check()
    File "/usr/lib/python2.5/site-packages/FusionIcon/util.py", line 362, in check
    os.makedirs(self.config_folder)
    File "/usr/lib/python2.5/os.py", line 172, in makedirs
    mkdir(name, mode)
    OSError: [Errno 13] Permission denied: '/home/andy/.config/compiz'
    Last edited by AndSmi (2007-12-30 13:56:33)

  • When I open iTunes, I get a message that "iTunes has stopped working".  I've tried reinstalling itunes, creating a new user file, changing the startup programs, and am having no success in getting iTunes to stay open. Any "fixes" for this problem?

    When I open ITunes, I get a message that "iTunes has stopped working".  I have tried reinstalling iTunes, creating a new user file, changing the startup programs in accordance with articles in iTunes troubleshooting, but am having no success in getting iTunes to stay open.  Any fixes for this problem?

     

  • How can I add a program to the Startup program

    When I copy a program that I want to add, I don't get a Paste menu item when right-clicking Startup menu item found when clicking Start and All Programs, so I can't add it to the Startup program

    I figured out a way to do this:
    1- Copy the shortcut to the program (or the program's .exe (execute file)) you want to add to Startup
    2- Right-click Startup (after selecting it in All Programs) and select Explore
    3-In the file structure that opens, right-click Startup
    4-Click Save.
    P.S. '''alan_r''' Thanks for trying but your suggestion didn't solve it.

  • Many startup programs in Gnome 2.24 Session preferences

    I see quite a few new startup programs in the new Gnome Session preferences.
    1. AT SPI Registry Wrapper ( what does this do?)
    2. Gnome Keyring Daemon wrapper.
    3. Gnome Settings Daemon
    4. Gnome Settings Daemon helper
    Which of these can be safely removed or disabled?
    I disabled Gnome Login sound and Remote Desktop.
    Thanks.

    1. AT SPI Registry Wrapper - is related with accessibility. I've disabled it to no ill effect.
    2. GNOME Keyring Daemon Wrapper - sounds important, so I left it enabled. after all, network-manager accesses the keyring (as well as some other programs).
    3. GNOME Settings Daemon - I left this alone because it sounds important. I think, if you disable, you may have problems with wallpapers and other visual styles.
    4. GNOME Settings Daemon Helper - Same as above.
    font: http://ubuntu-virginia.ubuntuforums.org … p?t=937156
    Last edited by alessandro_ufms (2008-10-22 16:57:54)

  • How to register a new MacBook using info I entered in the startup program?

    I just opened my new MacBook for the first time and the startup program walked me through entering a bunch of information and connecting to my old iBook to transfer data. And the end of the process it tried to register me with Apple but my internet connection was down and it told me I couldn't register now. It left me instructions for how to register later using the info I already typed in. I did not write down these instructions. Instead I clicked 'continue' and lost them forever.
    Does anyone know how to register after the startup program has quit? I found register.apple.com but it requires me to re-enter all my data. Ignoring from the fact that I've spent more time typing this question than I would have re-typing my name and address, it bugs me that I can't find the menu or dialog box that I could swear the startup program told me to use to send my saved info.
    Any advice?
    Thanks

    Usually there's a shortcut in your new user's Home folder called "Register with Apple" (or something similar to that) of the original registration fails. To open your user's Home folder, press Apple-shift-H from the Desktop. Can you see the shortcut there?
    Just so you know, you don't need to register to receive any technical support or warranty support from Apple. Registering with Apple, I believe, helps their Marketing Department, but you don't need to register for support or help.
    -Doug

  • Need default startup programs list in GNOME 2.24

    After upgrading to GNOME 2.24, I messed up the startup programs lists (System -> Preferences -> Sessions -> Startup programs). I would like to restore it back to GNOME's default. Can someone please provide me the default list? Thanks.

    rm ~/.config/autostart/*, then you'll get everything back.

  • Alunotify.exe in Startup Programs

    I have Norton Antivirus 2009.  After EVERY reboot, a little "pulsating antenna" appears in my task tray.  It's from the file Alunotify.exe in my Startup Programs.  How can I get rid of this so I can run Live Update manually?  This antenna goes away after I click it and it autoruns Live Update, but more than 9 times out of 10, there are NO updates and it's a false advisory.  I appreciate the help.  Thanks!

    Suri....
    Try disabling the Lion "resume" feature...
    Open System Preferences > General
    Deselect:   Restore windows when quitting and re-opening apps
    Restart your Mac.

  • Xmonad: startup programs and keybindings

    hi!
    i'm using xmonad since 2 weeks and so far i'm really satisfied with it. but i have 2 problems which i can not solve, so any help would be appreciated:
    1. is there a way to turn off/on all keybindings on the fly?
    2. i have several startup programs which are correctly moved to the specified workspace upon start. however, the order of the programs on each workspace is kind of random. for example, i would like to have a shell on the left side, and another program on the right side. how can i achieve this?
    thanks in advance!

    Go here for your support page and enter your full model number then select the drivers tab, then down on left side select your opersting system for your drivers. http://support.toshiba.com/home
    S70-ABT2N22 Windows 7 Pro & 8.1Pro, C55-A5180 Windows 8.1****Click on White “Kudos” STAR to say thanks!****

  • I5/OS PASE startup program

    Hi All,
    When we start run Uaserver it is showing this error.
    Unable to run i5/OS PASE startup program /usr/lib/start64.
    Unable to create Java Virtual Machine.                   
    Java program completed with exit code 1
    The env variable is set for these
    QIBM_JAVA_PASE_STARTUP      '/usr/lib/start64'
    JAVA_HOME                   '/QIBM/ProdData/Java400/jdk14'
    Any problem for the ccsid for pase.
    Regards
    Kohar

    Hello,
    we had this at one point. It indicates that you have 'inconsistencies' in the kernel. You should probably at least get the DW patch for the same level. If there is a complete kernel out right now, I would go with that.
    Please check the Forumalso, there have been several threads regarding the kernel in the last couple of weeks.
    Regards,
    Ingrid

  • Somehow, all of my exe files are tagged as Acrobat files - I cannot run any of the software on my computer - when I start the computer none of the startup programs run because they all try to open in acrobat.

    Somehow, all of my exe files are tagged as Acrobat files - I cannot run any of the software on my computer - when I start the computer none of the startup programs run because they all try to open in acrobat.

    See if anything in here helps: https://helpx.adobe.com/acrobat/kb/application-file-icons-change-acrobat.html

  • How Do I get a startup program to automatically respond to the "Is it OK for this program to make changes to this computer" challenge?

    I want to add a program to the Windows 7 Startup.  Whenever I run this program manually I get a "Do you want to allow this program to make changes...." challenge.  How do I add this program to my startup file and get it to respond "Yes"
    to the challenge.  Thank you for any ideas or suggestions that you care to offer.................Phil Hoop
    Phil Hoop

    Task Scheduler will allow you to bypass UAC on startup (Basic Task > Star Program at Log On > Tick 'Highest Privileges')..
    Your other option is Microsoft Application Compatibility Toolkit.. It enables you to disable UAC for any application you choose to trust. The compatibility fix you need
    to select is RunAsInvoker.

  • Gdm session independent startup programs

    Hi,
    Is there a way to make gdm startup some programs (keytouch in example) no matter wich session was selected (gnome, awesome ...)?
    Thanks!
    Nathan

    1. AT SPI Registry Wrapper - is related with accessibility. I've disabled it to no ill effect.
    2. GNOME Keyring Daemon Wrapper - sounds important, so I left it enabled. after all, network-manager accesses the keyring (as well as some other programs).
    3. GNOME Settings Daemon - I left this alone because it sounds important. I think, if you disable, you may have problems with wallpapers and other visual styles.
    4. GNOME Settings Daemon Helper - Same as above.
    font: http://ubuntu-virginia.ubuntuforums.org … p?t=937156
    Last edited by alessandro_ufms (2008-10-22 16:57:54)

Maybe you are looking for

  • School Network and Bridge- can't open RAW files

    Hi BACKGROUND: We are running Adobe CS3 in my school Mac lab (OS10.5 new iMacs and a couple of G5 towers). Students are assigned seats and log in to their home directory on the network xServe server. All their preferences, files etc are stored in the

  • ITunes not opening at all with Yosemite

    Hi there, I just updated to Yosemite (macbook Pro), and my iTunes isn't working at all, there's no error messages or anything, it just won't open. I've tried clicking it from the applications folder, right clicking, as well as connecting my phone, bu

  • Itunes wont load properly

    Hi, My Itunes 11.0.04 wont load properly on my Macbook running 10.7.2. Once i click on the itunes icon it flashes up and dissapears, the music still plays but i cant actually see the itunes interface at all. Having trouble finding anything about this

  • How to start ipad2 without a cover?

    As a new owner of ipad2, I bought an after market leather cover which does not accommodate the cover which starts ipad.  How do I start the ipad without the cover?

  • HT4113 hi my ipad is block i enter wrong passcoad can you tell me how i can open it

    hi   how can i open my i pad it was block. i forget my passcoad