Change download location of Safari PDF download button
AppleScript on its own can't be used to 'hook' into other actions such as clicking certain things. There are tools available to run AppleScript on keyboard shortcuts, however you might as well use ⌘S in this case, or remap this shortcut with System Preferences → Keyboard. One cannot change the download location of the button in Safari preferences.