AppleEvent Handler failed (-10000)
This works for me in the latest version of macOS Sierra...

tell application "System Events"
    set dockPrefs to dock preferences
    set appearancePrefs to appearance preferences
end tell