How To Automatically Change MIDI Settings Using AppleScript?

So I am wanting to make an AppleScript that will change the sample rate in the midi settings from 48,000 to 16,000. This is because the settings always reset every time I restart the computer. I am therefore getting really tired of all this and I want this to stop. Any suggestions on how to make this happen?

submitted by /u/the1azn9
[link] [comments]