:: 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:

  • So many hidden easter eggs in White & Nerdy by Weird Al. That's someone who loves what they do! http://youtu.be/N9qYF9DZPdw #weirdal 2 days ago
  • Why the fuck will the TV studios not license Gilligan, Jeannie, and Hillbillies for instant play on Netflix? They play them 100x per nt... 2 days ago
  • Intel is buying McAfee? WTF and why? I realize that the flabby, performance sucking McAfee may help sell higher powered CPUs, but ... 1 week ago
  • #tivo went from hero on Monday to zero today. They FAILED to keep their agreement, so new Tivo is going back. Lost me as a 10 yr customer! 2 weeks ago
  • #Tivo proves customer service is not dead. Cable DVR users don't know what ur missing compared to real Tivo. 10+ yrs customer & love them. 3 weeks ago
  • Got awesome service on a phone call from Justin at #Tivo today. My decade of evangelism for Tivo is well founded! 3 weeks ago
  • Not excited to be sitting here in the Florida airport waiting to fly home and be bored until the next trip :( #wdw #Florida 2010-08-04
  • More updates...

41 queries. 0.381 seconds