python – Pyto: get_type_identifiers() crashed with signal: SIGABRT

I am new to Pyto and not sure about how to use some of Pyto’s function.

I am trying to get the text in clipboard and I want to run the script with shortcuts.
I have read Pyto documentation. It suggested to use pasteboard.item_provider() to retrieve the clipboard text and loaded the text by get_type_identifiers(). However, it crashed when I try to run the script.

This is my code and the error message. Did I misunderstand the usage of get_type_identifiers()? How could I fix the problem?

import pasteboard as pb

item_provider = pb.item_provider()
item = item_provider.get_type_identifiers()
shellDic =

error message screenshot

Latest articles


Related articles

Leave a reply

Please enter your comment!
Please enter your name here