dustinrue/ControlPlane — Issue #91: Generalise the shell script action
Author: djbe
Created: 2011-12-12 03:50:44+00:00
State: open
Labels: Actions

Currently it only executes "shell scripts". Confusingly, the "open file" action checks if the file is an applescript and executes it...

I propose we move that bit of code (in open file action) to the _shell script_ action, and rename it _script_ action. If needed for certain other script formats we can also add detectors for these and use a custom executable. For now these should do:

* /bin/sh for general scripts
* /usr/bin/osascript for AppleScripts

Small clarification about other formats: for example, I have no idea if you can just execute ruby scripts or need to call them through the ruby executable.