set-ip-new.sikuli

(Download this script)
ip = input("please enter the new IP address:")
syspref = App.open("System Preferences.app")
with Region(syspref.window()):
        click()
        click()
        click()
        click( )
        wait()
        type(ip + "\t")
        type("255.255.255.0\t")
        type("192.168.0.254\t")
        click()