Skip to content

Instantly share code, notes, and snippets.

@aubricus
Created March 31, 2014 21:38
Show Gist options
  • Select an option

  • Save aubricus/9902952 to your computer and use it in GitHub Desktop.

Select an option

Save aubricus/9902952 to your computer and use it in GitHub Desktop.
Pbcopy Python
p = subprocess.Popen(['pbcopy'], stdin=subprocess.PIPE)
p.stdin.write('copy-text')
p.stdin.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment