Are there codes to do this in terminal?

Discussion in 'Mac Programming' started by pasc639, Sep 9, 2009.

  1. pasc639 macrumors newbie

    Sep 9, 2009
    Hey guys, I'm writing programs to do things automatically on my mac. I write it in nano and edit in text edit. The program has been "chmod +x"ed so it opens in terminal.

    What, if there is one, is the code to open a program at login? And how do you make the program change the homepage in Safari or, if possible, Firefox?

    Any help would be greatly appreciated. Thanks :)
  2. HiRez macrumors 603


    Jan 6, 2004
    Western US
    You can drop a file into your login items in System Preferences and it should open at login. As for how to programmatically change the home page in browsers, I don't know, you might try AppleScript or having your app modify preferences files (which doesn't seem like a good idea at all, frankly).

Share This Page