Folder actions to desktop folder

Has anyone tried adding a folder action to the desktop folder. Since it is an invisible folder is it possible?

It’s possible to attach a script, but it won’t run as a folder action.
NG