drapes won&#39;t compile, I got quite a lot of errors along the lines of<br>./Main.cs(49,63): error CS0234: The type or namespace name `Program&#39; does not exist in the namespace `Gnome&#39;. Are you missing an assembly reference?<br>


I tries a script to generate it before but it didn&#39;t work. I&#39;ll try your one<br clear="all">Jacob Mansfield<br>Programmer<br><br>
<br><br><div class="gmail_quote">On 16 October 2010 13:52, Steve Fisher <span dir="ltr">&lt;<a href="mailto:xirconuk@gmail.com" target="_blank">xirconuk@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


God, this was hard work!  But I think it runs, needs testing and all the paths are hardcoded and need changing.<div><br></div><div>So I am assembling a directory of jpegs and will report back, but going out (again) for a while.<br>



<div><br></div><div><div>#!/bin/bash</div><div>rm background-1.xml</div><div>echo &quot;&lt;background&gt;&quot; &gt;&gt; background-1.xml</div><div>echo &quot;  &lt;starttime&gt;&quot; &gt;&gt; background-1.xml</div><div>



echo &quot;    &lt;year&gt;2009&lt;/year&gt;&quot; &gt;&gt; background-1.xml</div><div>echo &quot;    &lt;month&gt;08&lt;/month&gt;&quot; &gt;&gt; background-1.xml</div><div>echo &quot;    &lt;day&gt;04&lt;/day&gt;&quot; &gt;&gt; background-1.xml</div>



<div>echo &quot;    &lt;hour&gt;00&lt;/hour&gt;&quot; &gt;&gt; background-1.xml</div><div>echo &quot;    &lt;minute&gt;00&lt;/minute&gt;&quot; &gt;&gt; background-1.xml</div><div>echo &quot;    &lt;second&gt;00&lt;/second&gt;&quot; &gt;&gt; background-1.xml</div>



<div>echo &quot;  &lt;/starttime&gt;&quot; &gt;&gt; background-1.xml</div><div>echo &quot;&lt;!-- This animation will start at midnight. --&gt;&quot; &gt;&gt; background-1.xml</div><div><br></div><div>#counter variable</div>



<div>x=1</div><div><br></div><div>for file in *</div><div><br></div><div>do</div><div><span style="white-space: pre-wrap;">        </span>#echo $x </div><div><span style="white-space: pre-wrap;">        </span></div>
<div><span style="white-space: pre-wrap;">        </span>if [ $x -eq 1 ]</div><div><span style="white-space: pre-wrap;">        </span>then</div><div><span style="white-space: pre-wrap;">                </span>FE=&#39;&lt;to&gt;/usr/share/backgrounds/cosmos/&#39;</div>



<div><span style="white-space: pre-wrap;">                </span>FE=&quot;${FE}$file&quot;</div><div><span style="white-space: pre-wrap;">                </span>FE=&quot;${FE}&lt;/to&gt;&quot;</div><div><span style="white-space: pre-wrap;">        </span>fi</div>



<div><span style="white-space: pre-wrap;">                </span></div><div><span style="white-space: pre-wrap;">        </span></div><div><span style="white-space: pre-wrap;">        </span>if [ $x -gt 1 ] </div>
<div><span style="white-space: pre-wrap;">        </span>then</div><div><span style="white-space: pre-wrap;">                </span>FT=&#39;&lt;to&gt;/usr/share/backgrounds/cosmos/&#39;</div><div><span style="white-space: pre-wrap;">                </span>FT=&quot;${FT}$file&quot;</div>



<div><span style="white-space: pre-wrap;">                </span>FT=&quot;${FT}&lt;/to&gt;&quot;</div><div><span style="white-space: pre-wrap;">                </span>echo $FT &gt;&gt; background-1.xml</div><div><span style="white-space: pre-wrap;">        </span>fi</div>



<div><span style="white-space: pre-wrap;">        </span></div><div><span style="white-space: pre-wrap;">        </span>echo &quot;  &lt;static&gt;&quot; &gt;&gt; background-1.xml</div><div><span style="white-space: pre-wrap;">        </span>echo &quot;    &lt;duration&gt;1795.0&lt;/duration&gt;&quot; &gt;&gt; background-1.xml</div>



<div><span style="white-space: pre-wrap;">        </span></div><div><span style="white-space: pre-wrap;">        </span>FS=&quot;   &lt;file&gt;/usr/share/backgrounds/cosmos/&quot;</div><div><span style="white-space: pre-wrap;">        </span>FS=&quot;${FS}$file&quot;</div>



<div><span style="white-space: pre-wrap;">        </span>FS=&quot;${FS}&lt;/file&gt;&quot;</div><div><span style="white-space: pre-wrap;">        </span></div><div><span style="white-space: pre-wrap;">        </span>FR=&quot;   &lt;from&gt;/usr/share/backgrounds/cosmos/&quot;</div>



<div><span style="white-space: pre-wrap;">        </span>FR=&quot;${FR}$file&quot;</div><div><span style="white-space: pre-wrap;">        </span>FR=&quot;${FR}&lt;/from&gt;&quot;</div><div><span style="white-space: pre-wrap;">        </span></div>



<div><span style="white-space: pre-wrap;">        </span>FT=&quot;   &lt;to&gt;/usr/share/backgrounds/cosmos/&quot;</div><div><span style="white-space: pre-wrap;">        </span>FT=&quot;${FT}$file&quot;</div>
<div><span style="white-space: pre-wrap;">        </span>FT=&quot;${FT}&lt;/to&gt;&quot;</div><div><span style="white-space: pre-wrap;">        </span></div><div><span style="white-space: pre-wrap;">        </span>echo $FS &gt;&gt; background-1.xml</div>



<div><span style="white-space: pre-wrap;">        </span>echo &quot;  &lt;static&gt;&quot; &gt;&gt; background-1.xml</div><div><span style="white-space: pre-wrap;">        </span>echo &quot;    &lt;duration&gt;5.0&lt;/duration&gt;&quot; &gt;&gt; background-1.xml</div>



<div><span style="white-space: pre-wrap;">        </span>echo $FR &gt;&gt; background-1.xml</div><div><span style="white-space: pre-wrap;">        </span>echo &quot;&lt;/transition&gt;&quot; &gt;&gt; background-1.xml</div>
<div><span style="white-space: pre-wrap;">        </span></div><div><span style="white-space: pre-wrap;">        </span></div><div>    #ls &quot;$file&quot;  # Lists all files in $PWD (current directory).</div>
<div>    </div><div>    x=$(( $x + 1 ))</div><div>    </div><div>    #echo $x</div><div>  </div><div>done</div><div><br></div><div>echo $FE &gt;&gt; background-1.xml</div><div>echo &quot;&lt;/transition&gt;&quot; &gt;&gt; background-1.xml</div>



<div>echo &quot;&lt;/background&gt;&quot; &gt;&gt; background-1.xml</div><div><br></div><div>exit 0</div><div><br></div></div></div>
<br>--<br>
<a href="mailto:ubuntu-uk@lists.ubuntu.com" target="_blank">ubuntu-uk@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk</a><br>
<a href="https://wiki.ubuntu.com/UKTeam/" target="_blank">https://wiki.ubuntu.com/UKTeam/</a><br>
<br></blockquote></div><br>