Attempting to write scripts to modify Java Settings in Safari.

Hello All,

I am attempting to write a script that will modify the Safari>Preferences>Security>Manage Website Settings>Java preferences and am not getting anywhere. Anyone know a good way to do this?