Setup Create new Automator application with Run Shell script action Put contents from lock_spotify_version.sh into script's body Save & add resulting application to user's "Login Items"