Apple’s Worldwide Developers Conference to kick off June 10 at 10 a.m. PDT with Keynote address

The Keynote will be available to stream on apple.com, the Apple Developer app, the Apple TV app, and the Apple YouTube channel. On-demand playback will be available after the conclusion of the stream.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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.

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 ID.