Working Spamable SAP macro?

Anyone got a working spamable SAP Macro? I cant seem to get any to work?

Try this if you haven’t found one yet:

/script ClearTarget();
/script TargetNearestEnemy()
/run if not (UnitIsPlayer(“target”)) then ClearTarget() end
/cast sap