macfidelity

|

rethinking the think-different thing

mac & apps | Skripte zu Mac Programmen wandeln mit Platypus

July 23rd, 2009 at 19:25

20090723_Platypus_01

Heute gibt’s mit Platypus mal wieder eine Programmvorstellung aus dem Bereich Scripting / Developer Tools.

Das kleine Schnabeltier kann ein guter kleiner Helfer sein wenn man viel mit Skripten arbeitet und diese ohne großen Aufwand in Programme mit typischer Mac-App-Struktur umwandeln / verpacken will.

Über Platypus

Platypus is a developer tool for the Mac OS X operating system. It can be used to create native, flawlessly integrated Mac OS X applications from interpreted scripts such as shell scripts or Perl and Python programs. This is done by wrapping the script in an application bundle directory structure along with an executable binary that runs the script.

Platypus thus makes it possible for you to share your scripts and programs with those unfamiliar with the command line interface, without any knowledge of the Mac OS X APIs — a few clicks and you will have your own Mac OS X graphical program. Creating installers, maintenance applications, login items, launchers, automations and droplets is very easy using Platypus.

Funktionsumfang

  • Supports shell scripts, Perl, Python, PHP, Ruby, Expect, Tcl, AppleScript
  • Supports arbitrary interpreter specification
  • 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, text window with script output, WebKit HTML rendering
  • 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
  • Application profiles

Download

Platypus findet ihr hier.

Enthalten ist neben dem reinen .app auch der typische “Papierkram” im Form von Readme.html und License.txt sowie einer netten Zugabe …. Sample Scripts

20090723_Platypus_02

Kommt mir jetzt natürlich entgegen – gleich brauchbares Beispielmaterial ;)

Interface

20090723_Platypus_03

bzw inkl den Advanced Options

20090723_Platypus_04

Testeinsatz

Ich will also eines der mitgelieferten Shell-Scripte in eine typische Mac-Programm-Sturktur verpacken ….

20090723_Platypus_05

Wahnsinnig komplex dieses Beispiel hehe aber was solls

Also fix Name definiert,  den Script Typ ausgesucht

20090723_Platypus_07

dann das Beispielsscript aus dem Finder reingezogen – den Ausgabetyp definiert

20090723_Platypus_08

Die erweiterten Optionen stehen auf den Ausgangswerten

20090723_Platypus_06

Via Create geht’s zur Erstellung bei der eine nette Zusatzfunktion zu Tage kommt

20090723_Platypus_12

und heraus kommt dann ein kleines .app

20090723_Platypus_09

welches ausgeführt dieses Fenster ergibt

20090723_Platypus_10

Tolle Sache – abschließend noch ein Blick ins .app

20090723_Platypus_11

Fazit

Tolles kleines Programm welches es herrlich einfach macht aus diversen Scriptformaten kleine Mac-like Programme zu erstellen.

Die Frage bleibt jedoch …. wer braucht sowas ?

Hardcore-Scripter werden ihren Kram wohl primär aus einem Terminal heraus verwenden – ob es dann wirklich ein .app sein muss kann man sicherlich verneinen.

Wer jedoch oft Scripte schreibt und diese an andere Benutzer weitergibt die ggf weniger Terminal-lastig arbeiten/denken könnte das Schnabeltier als gutes Herlferlein schätzen lernen.

Fragen über Fragen

Kanntet ihr das Platypus schon ?

Habt ihr Verwendung für sowas ?

Tags: , , , , , , , , , , , , ,

6 Responses to “mac & apps | Skripte zu Mac Programmen wandeln mit Platypus”

  1. Joachim Says:

    Klasse Idee

    Nein kannte ich noch nicht.
    Jetzt kann ich endlich meine SSH-Verbindungen und PING-Scripts einbinden.

    Schönes Programm

    ReplyReply
  2. Patrick (derandere) Says:

    Ui Danke für die vorstellung. Kann ich meine Cookie Scripts und GPG Sachen schön in eine APP packen.

    ReplyReply
  3. fidel Says:

    bitte bitte ;)
    Dachte mir doch das das Ding für den einen oder anderen praktisch sein dürfte hehe

    Gruss
    fidel

    ReplyReply
  4. der-flo Says:

    nettes Tool :-)

    da zu mir viele Komolitonen kommen, die Probleme mit dem Drucker der Uni haben, und ich mir ein Shell-Skript schon dazu gschriebn hab, kann ich das ganze gleich mal einsetzen. Bis man Leute. die den Mac toll finden, weil man ihn nicht über den Start-Button ausschaltet, erklärt, was eine Shell ist und wie/was man da macht, dauert es einfach zu lange :-D

    ReplyReply
  5. fidel Says:

    hehe irgendwie kommt mir der Ablauf:

    >> erklären wo sich das Terminal befindet

    so bekannt vor – wobei man in solchen Momenten oft genug einfach nur vergisst auf Spotlight zu verweisen.

    ReplyReply
  6. mac & apps | Scripte mit Dialogen versorgen via Pashua | macfidelity Says:

    [...] seine Scripte nur in .app Form bringen will sollte sich ggf Platypus ansehen – einen Einführungsbeitrag dazu findet ihr hier im [...]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>