The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Script: Create Subcontext (http://forums.omnigroup.com/showthread.php?t=21755)

jeremyp 2011-07-29 05:53 AM

Script: Create Subcontext
 
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 07: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 03:51 PM.

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