I'm trying to do this, to get the content of the clipboard
clipboard_data = os.system("pbpaste")
But this doesn't work! Not only does it not store whatever was in the clipboard (some text) in the var (returns 0) but it outputs the result of the command on the screen.
How can I make it work how I want?