def osx_clipboard_get():
p = subprocess.Popen(['<STR_LIT>', '<STR_LIT>', '<STR_LIT:ascii>'],<EOL>stdout=subprocess.PIPE)<EOL>text, stderr = p.communicate()<EOL>text = text.replace('<STR_LIT:\r>', '<STR_LIT:\n>')<EOL>return text<EOL>
Get the clipboard's text on OS X.