!7 static int seconds = 4; p { S lastText = null; repeat with sleep 1 { S s = getTextFromClipboard(); if (neq(s, lastText)) { lastText = s; long id = parseSnippetURLOpt(s); if (id != 0) { fS _id = fsI(id); //infoBox("Snippet: " + _id, 2); print("Testing snippet " + id); if (getSnippetType(id) == 34) { print("Runnable"); final JLabel lbl = jlabel(_id); final JFrame f = showPackedFrameInTopRightCorner("Run?", vstackWithSpacing(lbl, jbutton("Run", r { nohupJavax(_id); }))); thread "Get Title" { setText(lbl, titleDashSnippet(id)); packFrameInTopRightCorner(f); } disposeWindowIfMouseNotInIt(iround(seconds*1000), f); } } } } }