I can't seem to correctly make a subcontext, ie. "@Foo : bar". I can create @Foo, but when I try to create 'bar' as a subcontext of @Foo, it just creates it as a separate context (rather than a hierarchical one that you get if you drag and drop it).
I'm using code based on code by Curt Clifton, based on code by zooids, as follows:
set contextList to complete thePrimaryContext as context maximum matches 1
set contextID to context id (id of first item of contextList)
set newContext to make new context with properties {name:theSecondaryContext, container:contextID}
Despite saying "make this in the container contextID", it appears as a separate context. Any ideas?
thanks!
N
I'm using code based on code by Curt Clifton, based on code by zooids, as follows:
set contextList to complete thePrimaryContext as context maximum matches 1
set contextID to context id (id of first item of contextList)
set newContext to make new context with properties {name:theSecondaryContext, container:contextID}
Despite saying "make this in the container contextID", it appears as a separate context. Any ideas?
thanks!
N