Skip to content

Instantly share code, notes, and snippets.

@yanatan16
Created March 5, 2014 18:28
Show Gist options
  • Save yanatan16/9373460 to your computer and use it in GitHub Desktop.
Save yanatan16/9373460 to your computer and use it in GitHub Desktop.
me.joneisen.playmusiconstartup.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>RunAtLoad</key>
<true/>
<key>Label</key>
<string>me.joneisen.playmusiconstartup</string>
<key>ProgramArguments</key>
<array>
<string>afplay</string>
<string>/path/to/your/music/onstartup.aiff</string>
</array>
<key>KeepAlive</key>
<false/>
<key>LaunchOnlyOnce</key>
<true/>
</dict>
</plist>
@yanatan16
Copy link
Author

Make an .aiff that you want to play on startup (audacity is really nice and easy to use). Edit the file with the path to your music. Place this file in /Library/LaunchDaemons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment