PDA

View Full Version : Script: Create Subcontext


jeremyp
2011-07-29, 04:53 AM
Hi

I'm wondering if anyone has a script that I can "borrow" to create sub contexts automatically.

I.E. I have a Context called "Jeremy" and automatically want to create a context underneath it called "Waiting" as an On Hold Context.

Anyone done something similar?

Thanks

Jeremy

RobTrew
2011-07-29, 06:41 AM
The essentials might look something like this:

tell application id "OFOC"
tell default document
tell (first flattened context where name = "Jeremy")
make new context at end of contexts ¬
with properties {name:"Waiting", allows next action:false}
end tell
end tell
end tell