I'm thinking of building a Safari plugin that would allow Web developers to cause Ruby scripts to be run on a client's machine. For security reasons, the plugin will ask for permission from the user before executing any commands that could adversely affect the user, such as modifying a file on the user's hard drive.