<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"
>

<channel>
	<title>Shaun McDonald&#039;s Blog &#187; AppleScript</title>
	<atom:link href="http://blog.shaunmcdonald.me.uk/category/applescript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.shaunmcdonald.me.uk</link>
	<description>My Random Ramblings</description>
	<lastBuildDate>Tue, 31 Aug 2010 00:36:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>OOO: Possible fix for the command timed out error on Leopard</title>
		<link>http://blog.shaunmcdonald.me.uk/2008/03/ooo-possible-fix-for-the-command-timed-out-error-on-leopard/</link>
		<comments>http://blog.shaunmcdonald.me.uk/2008/03/ooo-possible-fix-for-the-command-timed-out-error-on-leopard/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 19:58:00 +0000</pubDate>
		<dc:creator>smsm1986</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[OpenOffice]]></category>
		<category><![CDATA[bug]]></category>

		<guid isPermaLink="false">http://smsm1986.wordpress.com/2008/03/30/ooo-possible-fix-for-the-command-timed-out-error-on-leopard/</guid>
		<description><![CDATA[UPDATE:Thanks to Eric Bachard, a fix very similar to this will be appearing in OpenOffice.org 2.4.2 due to be released at the end of October 2008. &#8212; With a change in the way that X11 works on Leopard, the X11 version of OpenOffice.org has been giving an error message on startup saying &#8220;command timed out&#8221;. [...]]]></description>
			<content:encoded><![CDATA[<p>UPDATE:Thanks to <a href="http://eric.bachard.free.fr/news/">Eric Bachard</a>, a fix very similar to this will be appearing in <a href="http://wiki.services.openoffice.org/wiki/OOoRelease242">OpenOffice.org 2.4.2</a> due to be released at the end of October 2008.</p>
<p>&#8212;</p>
<p>With a change in the way that X11 works on Leopard, the X11 version of OpenOffice.org has been giving an error message on startup saying &#8220;command timed out&#8221;. With previous versions of Mac OS X, OpenOffice.org had to make sure that X11 was running first be trying to start OpenOffice.org.</p>
<div>The following change should work for 2.4, 2.3.1, 2.3, and possibly earlier versions. Open the file OpenOffice.org 2.4.app/Contents/Resources/Scripts/main.scpt in &#8220;Script Editor&#8221;. (You will need to control+click the application icon and choose &#8220;Show Package Contents&#8221;.)</div>
<div>Then replace the code block &#8220;<code>on openSoffice(aFile)</code>&#8220;&#8230;.&#8221;<code>end openSoffice</code>&#8221; with the following:</div>
<div>
<pre>on openSoffice(aFile)</pre>
<pre> if (atLeastOSXVersion(10, 5, 0)) then  </pre>
<pre>-- if we have leopard, we don't need to manually start the X server first</pre>
<pre>  set theCmd to "sh " &amp; (quoted form of (POSIX path of getOOProgramPath() &amp; "soffice")) &amp; " "</pre>
<pre>  do shell script theCmd &amp; aFile &amp; shellTerminator()</pre>
<pre> else</pre>
<pre>  set theDisplay to startXServer()</pre>
<pre>  if (theDisplay is equal to "error") then</pre>
<pre>   return</pre>
<pre>  end if</pre>
<pre>  set theEnv to "DISPLAY=" &amp; theDisplay &amp; " ; export DISPLAY; "</pre>
<pre>  set theCmd to "sh " &amp; (quoted form of (POSIX path of getOOProgramPath() &amp; "soffice")) &amp; " "</pre>
<pre>  do shell script theEnv &amp; theCmd &amp; aFile &amp; shellTerminator()</pre>
<pre>  -- logEvent("open CMD: " &amp; theEnv &amp; theCmd &amp; aFile)</pre>
<pre> end if</pre>
<pre>end openSoffice</pre>
<p>Please comment on how this works for you.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.shaunmcdonald.me.uk/2008/03/ooo-possible-fix-for-the-command-timed-out-error-on-leopard/feed/</wfw:commentRss>
		<slash:comments>82</slash:comments>
		</item>
	</channel>
</rss>
