How to run a function after sample recording finishes?

Hi, I’m trying to figure out how to run a function whenever a sample recording finishes?

I’d prefer to set autoseek + autofade = ON and maybe change a screen setting.

But how do I do it? I used to do this by using a notifier on sample_buffer_observable but i then need to set it to each and every instrument box slot. Is there an easier solution?