How can I assign a nested context to a task?

Hi

Does anyone know how to assign a nested context to a task? I have a context “Steve” within a context “Delegated”. In Omnifocus its referenced as “Delegated:Steve”. In Applescript I have tried all the following but none work:

set theContext to context "Delegated:Steve"
set theContext to context "Steve"
set theContext to context "Delegated > Steve"
set theContext to context "Delegated/Steve"

Thanks

Oh I found the answer as soon as posting this…

set theContext to (first flattened context where its name = "Steve")

This looks like it assumes no other context is called Steve, so probably not the best solution, but works for me as I only have one context called this.

Would still be good to get a proper reference to the full context path