Change Applescript frequency on launch of app

Not sure if this is possible but, I would like to have a feature where when a certain app launches it changes associating widgets 'execute every x seconds' to a more frequent value.

For instance I don't use Spotify very often so I would have the Now Playing widget run every 15 seconds, until I launch the Spotify app then I would like it to run every 1 second.

Is this possible?