Dynamically Change Screenshot Save Location (based on time/front app)

This macro does exactly that. It sets the preferences for the default location.
It also remembers your last locations, so you can easily toggle between different ones.

‌

If you want a couple of features more (select location, set name, set properties, post-process screenshot), try that one: