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)

Posted on Aug 23, 2013 6:11 AM

Reply
2 replies

Aug 23, 2013 2:08 PM in response to brombo

Use Applications -> Automator -> Application -> Run Shell Script


Change the "Pass input" to "as arguments"


Change the


echo $f


to the full path to your geany executable. Leave the $f


/the/full/path/to/geany $f


Save the Automator app. Give it a name you like.


Now you can use twtwtw' trick to assocate .py files with the Automator app you have just created.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Create Laucher for program from macports

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.