:: 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 instance. Well, this open-source freeware lets you assign any program to any Windows-key combination press. qliner is a free, open-source program which lets you graphically bind any Windows+key combination press to launch or focus any program. They have some really cool features, which are not even found on the paid programs, such as a graphic on-screen keyboard that you can just drag programs onto to create the bindings. Also, in the interest of ergonomics, it will re-map the Caps-Lock key...

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 virtually? I think that everyone who plays pinball has, at one time or another, dreamt of designing their own machine. It's only natural to see the mechanical actions and believe that you could build sometime as good or better. Well, dream no more. With Future Pinball, a free software package for Windows, you can create your own 3D virtual machines. You first design the playfield layout using standard components and then you script the game's logic using a Visual...

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 projects lately :) This guy's bar features 128 RGB LEDs and over 250 feet of wire to create an incredibly flexible display under the surface of his home bar. The LEDs are computer-controlled and can be programmed to reproduce any pattern you like. The construction is pretty interesting. Each LED is in a square "pocket" and the bottom of the pocket has a bit of aluminum foil to create the non-uniform lighting effect. Unfortunately, the technical details are pretty light, but...

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 to create an eye-catching effect. This particular setup (shown in the video below) uses a horizontal line of 3,000 valves with a 1,000 gallon reservoir to create the waterfall effect. Much like a printer, each valve is actuated at exactly the right time to release a drop which combined together, can display text, graphics or interesting "moving" patterns. There are pumps and control systems in the columns on either side of the waterfall. The water is collected at the base,...

Complete plans for PIC based mp3 player
Build your own player and learn how to interface with SD flash memory. Obviously, building your own mp3 player is generally not cost effective if your only desire is to have a working player. However, for the nerd wanting to build their own while learning to use a Microchip PIC microcontroller, the Daisy mp3 player fits the bill. The site features the complete information needed to build the player including the firmware, PCB files (Eagle format), manual, and instructions. The project is neat in itself, but personally, I think it's a great source for example code and wiring which allows you use...

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:

34 queries. 0.464 seconds