[Just Share Not Issue] How to automate this script on login
Closed this issue · 0 comments
fortezhuo commented
Hi,
Thanks for this great script.
I want to contribute little script for automate the script using Automator
Open Automator
Select "Run Shell Script"
Paste this script
#!/bin/bash
osascript -e 'tell application "spotify"' -e "pause" -e 'end tell'
sleep 5
osascript -e 'tell application "terminal"' -e 'do script "./MuteSpotifyAds/NoAdsSpotify.sh"' -e 'end tell'
Save and named this app whatever you want, eg : "MuteSpotifyAds.app"
Open Setting
Search "Login Items"
Add "MuteSpotifyAds.app" on "Open at Login"