Run launchd script at login (macOS)

First of all create your bash script and place it somewhere. Next think of a name in the following reverse domain notation com.mycompanyname.mydepartment.mytaskname.plist and create the property list file (.plist) with the following content: Now place com.mycompanyname.mydepartment.mytaskname.plist in ~/Library/LaunchAgents and run in terminal: launchctl load ~/Library/LaunchAgents/com.mycompanyname.mydepartment.mytaskname.plist This tells launchd to Weiterlesen…