:: micsaund.com ::

Mike’s World of fun stuff (pinball, games, electronics, amusement parks, computers, more)

September 9, 2007

Create standalone OS X programs with Perl, Ruby, Python, etc.

by @ 7:45 pm. Filed under Apple, Software

Platypus packages Perl and other scripts for OS X
Easily create standalone programs for OS X which don't require any commandline experience for the end-users.

One of the great things about Apple's OS X is that it's based upon a BSD Unix foundation which makes it very easy to create scripts using Perl, Python, Ruby, AppleScript, or any number of other languages. However, while this is great for people who are comfortable with using a shell commandline, scripts like this generally aren't ideal for the typical user who wants everything done via a GUI.

I found a program called Platypus which creates standalone applications from your scripts which can be executed in the typical manner that you'd expect from any other application. Platypus lets you package artbitrary files, set associated file types, and do other things normally associated with a full-blown compiled app, but written instead in Perl or whatever you prefer. What a great way to create quick programs without delving into Objective-C or anything like that!

Platypus is completely free and open-source, although you might consider making a donation to further the development of the tool (links are on his site). Some of the features include:

* Supports shell scripts, Perl, Python, PHP, Ruby, Expect, Tcl, AppleScript
* Supports arbitrary interpreter -- thus support for any script type
* Executing scripts with root privileges via Apple's Security Framework
* Drag and drop files, which are passed to the script as arguments
* Graphical feedback of script execution: progress bar or text window with script output
* Can create applications which run in the background
* Sophisticated app bundle configuration for associated file types, identifier, version etc.
* Graphical interface for bundling support files with script
* Built-in script editor, or linking with external editor of choice
* Set own application icon or select from presets
* Command line tool for automating script application bundling

Grab Platypus and package your interpreted scripts for easy distribution and execution on OS X! If you need further help, there is a two-part tutorial on using Platypus (part 1, part 2).

stumbleupon:Create standalone OS X programs with Perl, Ruby, Python, etc. del.icio.us:Create standalone OS X programs with Perl, Ruby, Python, etc. digg:Create standalone OS X programs with Perl, Ruby, Python, etc. spurl:Create standalone OS X programs with Perl, Ruby, Python, etc. wists:Create standalone OS X programs with Perl, Ruby, Python, etc. simpy:Create standalone OS X programs with Perl, Ruby, Python, etc. newsvine:Create standalone OS X programs with Perl, Ruby, Python, etc. blinklist:Create standalone OS X programs with Perl, Ruby, Python, etc. furl:Create standalone OS X programs with Perl, Ruby, Python, etc. reddit:Create standalone OS X programs with Perl, Ruby, Python, etc. fark:Create standalone OS X programs with Perl, Ruby, Python, etc. blogmarks:Create standalone OS X programs with Perl, Ruby, Python, etc. Y!:Create standalone OS X programs with Perl, Ruby, Python, etc. smarking:Create standalone OS X programs with Perl, Ruby, Python, etc. magnolia:Create standalone OS X programs with Perl, Ruby, Python, etc. segnalo:Create standalone OS X programs with Perl, Ruby, Python, etc. gifttagging:Create standalone OS X programs with Perl, Ruby, Python, etc.

Related Stuff:

Free app lets you bind keys to start and focus programs
Windows only, sorry. It seems that very few people even know about the Windows-E combination to start an Explorer...

Free software lets you build your own pinball machine simulations
Ever wanted to bring that imaginary pinball machine in your head to life? Well, maybe not for real, but...

Stop Safari from opening PDFs inside the browser
[caption id="attachment_863" align="alignnone" width="250" caption="The Apple Safari logo"][/caption] It's been a while since I posted, but today, I had to figure-out...

Using everyday ideas to print a waterfall
Working in much the same was as an inkjet printer, the Jeep promotional waterfall system "prints" images with water drops...

A home bar like you’ve never seen before
Bring the disco to your home bar with this cool idea. It's becoming very apparent that I'm a sucker for LED...

Explore more

Previous post: External enclosure with custom microcontroller goodies

Next post: Good example of creativity at Microsoft

One Response to “Create standalone OS X programs with Perl, Ruby, Python, etc.”

  1. Amana Says:

    This is great info to know.

Leave a Reply

[powered by WordPress.]

micsaund.com

arcade games:

categories:

search blog:

syndication:

other links:

Twitter Stuff:

  • Rush = 3 man pwnage. 6 hrs ago
  • Don't forget that you lose an hour of your day-off tomorrow -- turn those clocks ahead 1 hour when you go to bed tonight... 8 hrs ago
  • Just finished my first home-made enchilada sauce (from scratch) which went into my own version of Alton's Mexican Lasagne - in the oven now! 9 hrs ago
  • Coach is the epic douche. Comparing himself to Last of the Mohicans and King Arthur?? jesus. Get real, poser. 1 week ago
  • Oh yeah... The good stuff thanks to a long time buddy. http://twitpic.com/141ynw 3 weeks ago
  • This episode of Undercover Boss where the Hooters CEO goes to work incognito in the restaurants should be interesting. 3 weeks ago
  • Jolene Blalock makes a good character on Legend of the #Seeker (#lots). Very hot with the long dark hair too! 2010-02-13
  • More updates...

38 queries. 0.343 seconds