Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

moonman239

Cancelled
Original poster
Mar 27, 2009
1,541
32
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.
 
I have a solution to my problem. Instead of creating a Safari plugin, I'll create an AppleScript that is invoked using a URI scheme. When the script is invoked, it will download the Ruby script that is to be executed, then tell the Ruby virtual machine to run that script.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.