Zend certified PHP/Magento developer

Automate copying new file in specific folder to clipboard

I’m using a macOS app to create GIFs (called GifFox) but the app does not offer a feature to auto-save to clipboard. However, I can define the location the GIF will be saved to. How can I create an automation that:

  1. listens for new files in this folder and auto-copies them to the clipboard (preferred UX)
  2. that copies the newest file in a folder to the clipboard after I execute a certain shortcut (less optimal).

I know I can trigger scripts via Automator. I’m specifically looking for a script that can accomplish this.