according to some bug posts in the net, this seems to be a special Mac/Java problem, where there is no solution. Nothing special with SikuliX.
The recommendation is, to catch the exception and try again or ignore.
so you might do this:
isUnavailable = "#UNAVAILABLE#" try: text = App.getClipboard() catch: text = isUnavailable if text == isUnavailable: # do corrective actions
according to some bug posts in the net, this seems to be a special Mac/Java problem, where there is no solution.
Nothing special with SikuliX.
The recommendation is, to catch the exception and try again or ignore.
so you might do this:
isUnavailable = "#UNAVAILABLE#"
try:
text = App.getClipboard()
catch:
text = isUnavailable
if text == isUnavailable:
# do corrective actions