Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pasc639

macrumors newbie
Original poster
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 🙂
 
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).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.