Basic skin changing script

Hi All,

Ive got this script to change the skin to confluence. How to I make a script executable so that when I add it to say favorites and an icon on my skin it executes the script. What do i call it? What ending does it need to have?

Thanks.

Here’s the script

Code:
xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Settings.SetSettingValue","id":1,"params":{"setting":"lookandfeel.skin","value":"skin.xonfluence"}}')
    time.sleep(1)
    xbmc.executebuiltin('SendClick(11)')