On 3/23/07, <b class="gmail_sendername">Jack Jansen</b> &lt;<a href="mailto:Jack.Jansen@cwi.nl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Jack.Jansen@cwi.nl</a>&gt; wrote:<div><span class="gmail_quote">
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>I was very surprised when I saw this, I&#39;d never seen this before.</blockquote><div><br>It&#39;s true, This is not the &quot;proper&quot; use of app framework but it was quick and dirty and worked for me. I don&#39;t like the answer &quot;just drop it in this magic box and it will just work&quot;.&nbsp; It was mostly to prove a point that you don&#39;t need py2app just to solve the simple problem at hand (especially when py2app isn&#39;t working for people).
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
And, indeed, when I tried it it didn&#39;t work:-(<br>Maybe you skipped an important step in the instructions?</blockquote><div><br>Hmm, I am interested in knowing why it didn&#39;t work.&nbsp; I am running on 10.4.9 using python 
2.4 Framework.<br></div>
</div>Note: there are some unwanted arguments passed to the python program using the method I presented<br><br>Here is a shell script I ran on several other os x installations so there is no doubt it will work and there are no missing steps.&nbsp; It basically creates a python program in /tmp/alfred_hw.py then creates alfred_hw application on the desktop so you can double click it and a window pops up with Hello World:
<br><br><br>#!/bin/sh<br clear="all">cat &gt; /tmp/alfred_hw.py &lt;&lt; .<br>from Tkinter import Tk, Label<br>r=Tk()<br>Label(r, text=&quot;Hello World&quot;).pack()<br>r.mainloop()<br>.<br>mkdir ~/Desktop/alfred_hw.app<br>
cat&nbsp; &gt; ~/Desktop/alfred_hw.app/alfred_hw &lt;&lt; .<br>#!/usr/bin/env pythonw /tmp/alfred_hw.py<br>.<br>chmod +x ~/Desktop/alfred_hw.app/alfred_hw<br><br><br>Thanks for the BundleAnatomy link.<br>-- <br>-alfred