<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://enfascination.com/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://enfascination.com/wiki/index.php?action=history&amp;feed=atom&amp;title=ScienceWeblog%3ABaby%27s_First_Applescript</id>
		<title>ScienceWeblog:Baby's First Applescript - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://enfascination.com/wiki/index.php?action=history&amp;feed=atom&amp;title=ScienceWeblog%3ABaby%27s_First_Applescript"/>
		<link rel="alternate" type="text/html" href="http://enfascination.com/wiki/index.php?title=ScienceWeblog:Baby%27s_First_Applescript&amp;action=history"/>
		<updated>2026-04-26T04:39:08Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.0rc5</generator>

	<entry>
		<id>http://enfascination.com/wiki/index.php?title=ScienceWeblog:Baby%27s_First_Applescript&amp;diff=2734&amp;oldid=prev</id>
		<title>Mother Nature: moved Weblog:Baby's First Applescript to ScienceWeblog:Baby's First Applescript</title>
		<link rel="alternate" type="text/html" href="http://enfascination.com/wiki/index.php?title=ScienceWeblog:Baby%27s_First_Applescript&amp;diff=2734&amp;oldid=prev"/>
				<updated>2011-03-24T12:06:12Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/wiki/index.php?title=Weblog:Baby%27s_First_Applescript&quot; class=&quot;mw-redirect&quot; title=&quot;Weblog:Baby's First Applescript&quot;&gt;Weblog:Baby&amp;#039;s First Applescript&lt;/a&gt; to &lt;a href=&quot;/wiki/index.php?title=ScienceWeblog:Baby%27s_First_Applescript&quot; title=&quot;ScienceWeblog:Baby's First Applescript&quot;&gt;ScienceWeblog:Baby&amp;#039;s First Applescript&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 12:06, 24 March 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Mother Nature</name></author>	</entry>

	<entry>
		<id>http://enfascination.com/wiki/index.php?title=ScienceWeblog:Baby%27s_First_Applescript&amp;diff=2435&amp;oldid=prev</id>
		<title>Seth at 00:37, 22 January 2010</title>
		<link rel="alternate" type="text/html" href="http://enfascination.com/wiki/index.php?title=ScienceWeblog:Baby%27s_First_Applescript&amp;diff=2435&amp;oldid=prev"/>
				<updated>2010-01-22T00:37:26Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;I wanted to use vim to develop R code.  I am on a Mac.  R lets you specify an external editor (go from R-&amp;gt;vim), but you need Applescript as glue to go the other way, vim-&amp;gt;R, and execute code from vim in R.  The Applescript below, saved in Applescript Editor, creates a script that can be run from the command line and will execute the first command line argument as a source file. It should be pretty easy to run any other program besides R that allows this kind of thing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-- in shell &amp;quot;osascript RunR.scpt ~/path/script.r&amp;quot;&lt;br /&gt;
-- from vim: &amp;quot;:! osascript ~/bin/RunRb.scpt `pwd`/% &amp;quot;&lt;br /&gt;
-- in .vimrc: &amp;quot;cmap runr ! osascript ~/bin/RunRb.scpt `pwd`/% &amp;quot;&lt;br /&gt;
&lt;br /&gt;
on run argv --for command line&lt;br /&gt;
	tell application &amp;quot;R&amp;quot;&lt;br /&gt;
		activate&lt;br /&gt;
		with timeout of 90000 seconds&lt;br /&gt;
			cmd &amp;quot;source(&amp;quot; &amp;amp; quoted form of POSIX path of item 1 of argv &amp;amp; &amp;quot;)&amp;quot; --R code&lt;br /&gt;
		end timeout&lt;br /&gt;
	end tell&lt;br /&gt;
end run&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Seth</name></author>	</entry>

	</feed>