Create Laucher for program from macports
I am running mountain lion (10.8.4) on a MacPro. I have downloaded the geany editor using macports ("sudo port install geany"). I can start the program from a terminal using the command "geany" or "geany file.py" if I wish to edit the file "file.py" (I program in python). I am completely new to the Mac world (having come from Ubuntu Linux). Note that geany uses XQuartz. I wish to create a laucher app for geany and to make geany the default editor for .py files. From what I have read applescript is the way to do this, but nothing I do works. Any suggestions or links or references would be greatly appreciated. I can write bash and python scripts to launch geany but cannot get beyound that point. I keep coming across the comment that the applescript rules have changed for mountain lion.
MacBook Pro, OS X Mountain Lion (10.8.4)