Looking for an AppleScript to clear context of selected items

I am looking for a AppleScript to clear context of selected items.