How do I build a Safari plugin that can run a shell script?

Discussion in 'Mac Programming' started by moonman239, May 8, 2014.

  1. moonman239 macrumors 68000

    Joined:
    Mar 27, 2009
    #1
    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.
     
  2. moonman239 thread starter macrumors 68000

    Joined:
    Mar 27, 2009
    #2
    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.
     

Share This Page