Skip to content

Instantly share code, notes, and snippets.

@gjoseph
Last active August 29, 2015 14:20
Show Gist options
  • Save gjoseph/98c6d7672494b0a5a63b to your computer and use it in GitHub Desktop.
Save gjoseph/98c6d7672494b0a5a63b to your computer and use it in GitHub Desktop.
Use SourceDrop from the command line
#!/bin/sh
# Set SourceDrop's keyboard shortcut to control-option-command-f13 (or whatever, really)
# F13 is code 105 (http://macbiblioblog.blogspot.ch/2014/12/key-codes-for-function-and-special-keys.html)
# Print out stuff and pipe it into this script (e.g cat ~/bin/sourcedrop | sourcedrop)
pbcopy && osascript -e 'tell application "System Events" to key code 105 using {control down, option down, command down}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment