← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #268673]: [1.1.0] Mac: App.getClipboard(): java.io.IOException: system clipboard data unavailable

 

Question #268673 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268673

    Status: Open => Answered

RaiMan proposed the following answer:
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

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.