The signals on the workspace variable are not defined at runtime, at least not on KDE 6.2.3.
Here is debug print from my script:
Workspace properties:
workspace.desktopPresenceChanged NOT DEFINED
workspace.currentDesktopChanged defined
workspace.clientAdded NOT DEFINED
workspace.clientRemoved NOT DEFINED
workspace.clientManaging NOT DEFINED
workspace.clientMinimized NOT DEFINED
workspace.clientUnminimized NOT DEFINED
workspace.clientRestored NOT DEFINED
workspace.clientMaximizeSet NOT DEFINED
workspace.killWindowCalled NOT DEFINED
workspace.clientActivated NOT DEFINED
workspace.clientFullScreenSet NOT DEFINED
workspace.clientSetKeepAbove NOT DEFINED
workspace.numberDesktopsChanged NOT DEFINED
workspace.desktopLayoutChanged defined
workspace.clientDemandsAttentionChanged NOT DEFINED
workspace.numberScreensChanged NOT DEFINED
workspace.screenResized NOT DEFINED
workspace.currentActivityChanged defined
workspace.activitiesChanged defined
workspace.activityAdded defined
workspace.activityRemoved defined
workspace.virtualScreenSizeChanged defined
workspace.virtualScreenGeometryChanged defined