Is it possible uses in script?

How can I handle uses in script? When I handle the OnFindUnknownFile of the TPSScript I get AV “Invalid pointer operation”. Doing I something wrong or it is a bug?

I don’tthinkthat event is properly supported, it was part of the “unit support”, which didn’t work well and was removed.