The Omni Group Forums

The Omni Group Forums (
-   OmniFocus Extras (
-   -   Script: Create Subcontext (

jeremyp 2011-07-29 04:53 AM

Script: Create Subcontext

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?



RobTrew 2011-07-29 06:41 AM

The essentials might look something like this:

[CODE]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[/CODE]

All times are GMT -8. The time now is 07:43 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2022, vBulletin Solutions, Inc.