|
|
|
|
![]() ![]() ![]() ![]() ![]()
|
What Is ScriptGUI?ScriptGUI lets you run shell scripts from the finder. If you know what
#!/bin/sh
means, you need ScriptGUI!
Long-time UNIX users like me have been frustrated by the fact that there's no simple way to make a double-clickable shell script. The UNIX shell has forever had the ability to turn a shell script into an executable simply by setting the "execute" bit. But until now there has been no easy way to carry this behavior over to the Finder.
ScriptletsWhen you're ready to share your scripts, ScriptGUI lets you wrap up your scripts in neat little packages called Scriptlets that you can share freely with your friends. Scriptlets are self-contained applications that run by themselves - your friends don't even need ScriptGUI to use them.Get Me Going, Quickly!It's simple. If you have Perl scripts ending in .pl, or shell scripts ending in .sh, simply installing ScriptGUI will make those script double-clickable. Couldn't be easier. For any others, you can rename them to end with with .sgui (for ScriptGUI), or .pl or .sh.
How It WorksScript GUI is an OS X application that knows how to run shell scripts. It works basically the same way as your favorite UNIX shell (sh, bash, perl, python, etc.): the UNIX shell reads the script file and checks the first line to see if it looks something like this:
This example is for Perl, for instance, but the same thing works for scripts of many kinds. Once it figures out which interpreter to use (Perl in this case), it forks off a child process to run the interpreter, which executes the script. It then reads stdout and stderr and writes out the output to the terminal. Script GUI works the same way, it just does all this in a handy window. Known Bugs/"Issues"These are the things I intend to eventually fix.
FeedbackI love feedback, both positive and negative. (Ok, I like positive feedback better...). Drop me a line at feedback@scriptgui.com. Tell me what you think of ScriptGUI and how you're using it. I use ScriptGUI every day, so I'm interested in your ideas for making ScriptGUI the best it can be. |
|