Well, what you request is not conventional. But, I wrote a Scriptlet which is very close from what you request. You still have to convert a CC# message into a note message and it should be very close to work as you described:
However, I don’t really understand your use case, could you elaborate a bit?