Platypus - 將 script 變作 Mac App

我之前大部份的工作是使用 UNIX 為主,亦因而令我愛上 UNIX,愛上它的穩定、有彈性,因此 Mac OS X 這個 Darwin (UNIX alike) based core,外加美觀實用介面的 OS,我怎會不愛上呢。

不諱言我對 command line 毫不抗拒,vi 甚至是我的 native editor,有時我會寫 shell script 來將一些工作自動化,當然另一選擇是使用 Automator 吧,但有些情況用 script 來做會比較方便。

當你想將一些自己寫的 Perl、PHP、Python、Ruby 或 shell script 等和其他人分享時,會不會遇到一個問題,就是他們不懂使用 command line interface,若有的話 Platypus 這個 Open Source 軟件是一個解決這個問題的好拍擋。

platypus_screenshot

Platypus 可以方便的將 scripting language 變作 Mac application,那麼再給其他人使用就絕對沒有問題了,將 script 變成 application 的另一個好處,就是可在 Quicksilver 中設定 trigger 來執行,以下是 Platypus 詳細 features。

  • 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

2 Responses to “Platypus - 將 script 變作 Mac App”

  1. 2971

    那麼,天祐君要多多分享你的大作了。
    :)

  2. 2966

    机器人还不错的,起码起到一点学习的效果

Leave a Reply