I’ve written a script which is for archiving and every time I hit cmd+S out of habit I want that script to run and make a duplicate of my file in another folder. The only thing I don’t know is how to map the script to the save shortcut. Is there anyway to make this work?
You could map the menu item “Save” to another key combination (say, control-s) using System Preferences > Keyboard > Keyboard Shortcuts > Application Shortcuts > RoboFont. Then you could use a script manager like FastScripts to map Cmd-S to your script.
if you want to receive those notifications, just add this .py file to the start up scripts in your preferences. This doesn’t effect performance, unless to your part of the code, what is been executed when the notification is been send, takes a while.