With basic elements of OS X it is possible to designate a certain folder as input for the clipboard. When a file is saved into this folder a script reads its contents, saves it to the clipboard and deletes the file.
How to install
I assume the folder is called
_SaveToClipboard and is located at
/Users/Flo/_SaveToClipboard/. Please change the path accordingly.
- Create the folder
- Create the script file
- Make the script executable (manually via CMD+I or via Terminal:
chmod +x _SaveToClipboard.command)
- Create the launch configuration file
- Register the lauch configuration via Terminal command:
launchctl load /Users/Flo/Library/LaunchAgents/de.cdhq.apple.osx.SaveToClipboardLogger.plist
How to uninstall
To uninstall simply unregister the launch configuration via
launchctl unload /Users/Flo/Library/LaunchAgents/de.cdhq.apple.osx.SaveToClipboardLogger.plist.