Copiado daqui: Execução de script no login mac
- Start Automator.app
- Select "Application"
- click "Show library" in the toolbar (if hidden)
- Add "Run shell script" (from the Actions/Utilities)
- Copy & paste your script into the window
- Test it
- Save somewhere, for example you can make an "Applications" folder in your HOME (you will get a
your_name.app
)- Go to System Preferences -> Accounts -> Login items
- Add this app