Given a suitable role, produce manuscript when entering court (8)
I believe the answer is:
typecast
'given a suitable role produce manuscript when entering court' is the definition.
I can't judge whether this definition defines the answer.
'manuscript when entering court' is the wordplay.
'manuscript' becomes 'type' (I can't explain this - if you can you should give a lot more credence to this answer).
'when' becomes 'as' (eg 'when I walked' means 'as I walked').
'entering' is an insertion indicator.
'court' becomes 'ct' (abbreviation used in road names).
'as' going within 'ct' is 'cast'.
'type'+'cast'='TYPECAST'
Can you help me to learn more?
(Other definitions for typecast that I've seen before include "playing similar roles" , "in the usual parts" , "make actor repeat himself ..." , "fitting a standard image" , "Stereotype" .)