Last active
May 1, 2020 15:55
-
-
Save bloodf/983895d2a5066f4753803c706b5af9bf to your computer and use it in GitHub Desktop.
Share Spotify Song on Slack
Author
bloodf
commented
Mar 26, 2020
- perl -MCPAN -e shell
- yes - (for the "...configure automatically" question)
- install URI::Escape
- ...wait for it to finish...
- exit
You can have this run automatically on your mac using the native launchd system:
Creating the startup process
Drop the following PLIST into ~/Library/LaunchAgents/com.user.slack-spotify.plist:
The filename must match the string under Label, replace /PATH/TO/SCRIPT.sh with an actual path to the .sh script above.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.user.slack-spotify</string>
<key>ProgramArguments</key>
<array><string>/PATH/TO/shareSpotifySongOnSlack.sh</string></array>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key>
<integer>60</integer>
</dict>
</plist>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment