!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); if (getSnippetType(id) == 34) { S text = titleDashSnippet(id); final JFrame f = showPackedFrameInTopRightCorner("Run?", vstackWithSpacing(jlabel(text), jbutton("Run", r { nohupJavax(_id); }))); disposeWindowAfter(iround(seconds*1000), f); } } } } }