<?xml version="1.0" encoding="ISO-8859-1"?><opml version="1.1">	<head>		<title>googleRightClick.opml</title>		<dateCreated>Fri, 12 Apr 2002 23:41:02 GMT</dateCreated>		<dateModified>Sat, 13 Apr 2002 14:28:05 GMT</dateModified>		<ownerName>David Davies</ownerName>		<ownerEmail>d.a.davies@bham.ac.uk</ownerEmail>		<expansionState>5, 6, 11, 12, 15, 16, 19, 39, 42, 45, 54</expansionState>		<vertScrollState>27</vertScrollState>		<windowTop>207</windowTop>		<windowLeft>160</windowLeft>		<windowBottom>624</windowBottom>		<windowRight>818</windowRight>		</head>	<body>		<outline text="Wow, Google API. Here's a bit of Friday evening fun. The following will perform a Google search on anything you right-click (control-click) on in Radio. Results will pop up in a new outline as an RSS file. Try it with someone's name in your Buddies list, or an outline heading in your instant outline."/>		<outline text=""/>		<outline text="NB You must have the Google API installed in your copy of Radio and you must have requested a Google activation key." type="link" url="http://radio.userland.com/googleApi"/>		<outline text=""/>		<outline text="1) Put your cursor on the following heading and type Ctrl-/ (or Cmd-/ if you're using a Mac):" created="Thu, 28 Mar 2002 07:51:50 GMT">			<outline text="edit (@user.tools.menus.rightClickmenu)">				<outline text="true" isComment="true"/>				</outline>			</outline>		<outline text="2) In the window that opens (your right-click menu) make a new entry called &quot;Google...&quot;"/>		<outline text="3) Open this new menu item by 2x clicking on its little grey outliner triangle"/>		<outline text="4) A new script window called 'Script for &quot;Google...&quot;' opens."/>		<outline text="5) Copy the following script and paste it into this script window">			<outline text="bundle // Search using Google">				<outline text="local">					<outline text="htmlText"/>					<outline text="itemStruct"/>					<outline text="text = op.getLineText ()"/>					<outline text="xmlText"/>					</outline>				<outline text="on add (s)">					<outline text="htmlText = htmlText + s + cr"/>					</outline>				<outline text="on makeRssFile ()">					<outline text="bundle //build xmltext">						<outline text="local (indentlevel = 0)"/>						<outline text="on add (s)">							<outline text="xmltext = xmltext + string.filledstring (&quot;\t&quot;, indentlevel) + s + &quot;\r\n&quot;"/>							</outline>						<outline text="on encode (s)">							<outline text="if system.environment.isMac">								<outline text="return (xml.entityEncode (latinToMac.macToLatin (s), true))"/>								</outline>							<outline text="else">								<outline text="return (xml.entityEncode (s, true))"/>								</outline>							</outline>						<outline text="add (&quot;&lt;?xml version=\&quot;1.0\&quot;?&gt;&quot;)"/>						<outline text="add (&quot;&lt;!-- RSS generated by Radio UserLand v&quot; + frontier.version () + &quot; on &quot; + date.netstandardstring (clock.now ()) + &quot; --&gt;&quot;)"/>						<outline text="add (&quot;&lt;rss version=\&quot;0.92\&quot;&gt;&quot;); indentlevel++"/>						<outline text="add (&quot;&lt;channel&gt;&quot;); indentlevel++"/>						<outline text="add (&quot;&lt;title&gt;&quot; + encode (&quot;Google Search Results&quot;) + &quot;&lt;/title&gt;&quot;)"/>						<outline text="add (&quot;&lt;link&gt;&quot; + encode (&quot;http://www.google.com/&quot;) + &quot;&lt;/link&gt;&quot;) "/>						<outline text="add (&quot;&lt;description&gt;&quot; + encode (&quot;Results of a Google search&quot;) + &quot;&lt;/description&gt;&quot;)"/>						<outline text="if language != &quot;none&quot;" isComment="true">							<outline text="add (&quot;&lt;language&gt;&quot; + language + &quot;&lt;/language&gt;&quot;)"/>							</outline>						<outline text="add (&quot;&lt;copyright&gt;&quot; + &quot;Copyright &quot; + date.year () + &quot; &quot; + &quot;Probably Google&quot; + &quot;&lt;/copyright&gt;&quot;)"/>						<outline text="add (&quot;&lt;lastBuildDate&gt;&quot; + date.netstandardstring (clock.now ()) + &quot;&lt;/lastBuildDate&gt;&quot;)"/>						<outline text="add (&quot;&lt;docs&gt;http://backend.userland.com/rss092&lt;/docs&gt;&quot;)"/>						<outline text="add (&quot;&lt;managingEditor&gt;&quot; + encode (user.prefs.name) + &quot;&lt;/managingEditor&gt;&quot;)"/>						<outline text="add (&quot;&lt;webMaster&gt;&quot; + encode (user.prefs.name) + &quot;&lt;/webMaster&gt;&quot;)"/>						<outline text="bundle //add cloud element" isComment="true">							<outline text="if flCloud">								<outline text="with user.radio.prefs.rssCloud">									<outline text="add (&quot;&lt;cloud domain=\&quot;&quot; + server + &quot;\&quot; port=\&quot;&quot; + port + &quot;\&quot; path=\&quot;&quot; + path + &quot;\&quot; registerProcedure=\&quot;&quot; + registerProcedure + &quot;\&quot; protocol=\&quot;&quot; + protocol + &quot;\&quot;/&gt;&quot;)"/>									</outline>								</outline>							</outline>						<outline text="add (itemStruct)"/>						<outline text="add (&quot;&lt;/channel&gt;&quot;); indentlevel--"/>						<outline text="add (&quot;&lt;/rss&gt;&quot;); indentlevel--"/>						</outline>					</outline>				<outline text="on addRSSitem (title, link, description)">					<outline text="title = searchengine.stripmarkup (title)"/>					<outline text="description = searchengine.stripmarkup (description)"/>					<outline text="bundle //build xmltext">						<outline text="local (indentlevel = 2)"/>						<outline text="on add (s)">							<outline text="itemStruct = itemStruct + string.filledstring (&quot;\t&quot;, indentlevel) + s + &quot;\r\n&quot;"/>							</outline>						<outline text="on encode (s)">							<outline text="if system.environment.isMac">								<outline text="return (xml.entityEncode (latinToMac.macToLatin (s), true))"/>								</outline>							<outline text="else">								<outline text="return (xml.entityEncode (s, true))"/>								</outline>							</outline>						<outline text="add (&quot;&lt;item&gt;&quot;); indentlevel++"/>						<outline text="add (&quot;&lt;title&gt;&quot; + encode (title) + &quot;&lt;/title&gt;&quot;)"/>						<outline text="add (&quot;&lt;link&gt;&quot; + link + &quot;&lt;/link&gt;&quot;)"/>						<outline text="add (&quot;&lt;description&gt;&quot; + encode (description) + &quot;&lt;/description&gt;&quot;)"/>						<outline text="add (&quot;&lt;/item&gt;&quot;); indentlevel--"/>						</outline>					</outline>				<outline text="system.temp.googleSearch = google.search (text)"/>				<outline text="if system.temp.googleSearch.endIndex == 0">					<outline text="dialog.notify (&quot;Sorry, nothing found at Google.&quot;)"/>					<outline text="return (false)"/>					</outline>				<outline text="for n = 1 to system.temp.googleSearch.endIndex">					<outline text="title = system.temp.googleSearch.resultElements [n].title"/>					<outline text="if title == &quot;&quot;">						<outline text="title = system.temp.googleSearch.resultElements [n].summary"/>						</outline>					<outline text="snippet = system.temp.googleSearch.resultElements [n].snippet"/>					<outline text="url = system.temp.googleSearch.resultElements [n].url"/>					<outline text="add (&quot;&lt;p&gt;&quot; + n + &quot;. &lt;a href=\&quot;&quot; + url + &quot;\&quot;&gt;&quot; + title + &quot;&lt;/a&gt;&lt;/p&gt;&quot;)"/>					<outline text="addRSSitem (title, url, snippet)"/>					</outline>				<outline text="makeRssFile ()"/>				<outline text="op.rssToOutline (xmlText, @system.temp.googleRSSResults)"/>				<outline text="edit (@system.temp.googleRSSResults)"/>				</outline>			</outline>		<outline text="6) Close the window (don't press the 'Run' button!)"/>		<outline text=""/>		<outline text="You can now right-click on just about anything anywhere and get Google search results popping up in a new outline. The results will be an RSS file."/>		<outline text=""/>		<outline text="Have fun and let me know how you get on!"/>		<outline text=""/>		<outline text="Thanks again to Userland for making this possible!"/>		<outline text=""/>		<outline text="Usual caveats, use at your own risk, the code's probably crude, etc. But hey, we're just having some fun, right?"/>		</body>	</opml>