Guest User

Untitled

a guest
Jun 21st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. /Library/LaunchAgents/boot-script.plist
  2.  
  3. <?xml version="1.0" encoding="UTF-8"?>
  4. <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
  5. "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  6. <plist version="1.0">
  7. <dict>
  8. <key>Label</key>
  9. <string>boot-script</string>
  10.  
  11. <key>ProgramArguments</key>
  12. <array>
  13. <string>/usr/local/bin/boot.sh</string>
  14. </array>
  15.  
  16. <key>RunAtLoad</key>
  17. <true/>
  18.  
  19. </dict>
  20. </plist>
  21.  
  22. /usr/local/bin/boot.sh
  23.  
  24. #!/bin/bash
  25.  
  26. function startup(){
  27.  
  28. cd /Users/FooUser/Desktop
  29. touch FooFile
  30. }
  31.  
  32. startup;
Add Comment
Please, Sign In to add comment