Last active
August 29, 2015 14:20
-
-
Save gjoseph/98c6d7672494b0a5a63b to your computer and use it in GitHub Desktop.
Use SourceDrop from the command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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