{"id":488,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=488"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"slrn-launching-urls","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=488","title":{"rendered":"slrn: Launching URLs"},"content":{"rendered":"<p>If you use <a href=\"\/chunga.php?ID=336\">slrn<\/a> as a newsreader and want to be able to have URLs embedded in articles opened in NetPositive automatically, save the script below to <code>~\/config\/bin\/OpenURL<\/code>. Then open your <code>.slrnrc<\/code> file, search for the section &#8222;% WWW browser to use&#8220; and add these two lines:<\/p>\n<pre>\nset non_Xbrowser \"OpenURL --url -w 2 '%s' &amp;\"\nset Xbrowser \"OpenURL --url -w 2 '%s' &amp;\"\n<\/pre>\n<p>Change the &#8222;2&#8220;s to the number of the workspace you want NetPositive to be launched in. Quit and restart slrn if necessary. Now find an article containing a URL, and press &#8222;U&#8220; (uppercase, not lowercase). If the article contains just one URL, it will appear in the status bar. Press Enter to launch it. If the article contains more than one URL, they&#8217;ll appear in a menu &#8212; use the arrow keys to choose a URL from the list.<br \/>\nHere&#8217;s the OpenURL script. Be sure to tweak the last section of the script to tell it whether to use Pe or Eddie as your main editor.<\/p>\n<pre>\nURL=0\nwhile [ $# -ge 1 ]\ndo\n        case $1 in\n                -w | --workspace)\n                        WORKSPACE=$2\n                        shift\n                        ;;\n                -f | --file)\n                        URL=0\n                        ;;\n                -u | --url)\n                        URL=1\n                        ;;\n                -*)\n                        ;;\n                *)\n                        STRING=\"$STRING $1\"\n                        ;;\n        esac\n        shift\ndone\nif [ $WORKSPACE ]\nthen\n        let WS=${WORKSPACE}-1\n        Workspaces $WS\nfi\nif [ \"$URL\" -eq 1 ]\nthen\n        NetPositive $STRING\nfi\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you use slrn as a newsreader and want to be able to have URLs embedded in articles opened in NetPositive automatically, save the script below to ~\/config\/bin\/OpenURL. Then open your .slrnrc file, search for the section &#8222;% WWW browser to use&#8220; and add these two lines: set non_Xbrowser &#8222;OpenURL &#8211;url -w 2 &#8218;%s&#8216; &amp;&#8220; [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[2],"class_list":["post-488","post","type-post","status-publish","format-standard","hentry","tag-applications"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=488"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/488\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}