Created
September 21, 2011 01:31
-
-
Save al3xandru/1230955 to your computer and use it in GitHub Desktop.
Choose a Waiting context in OmniFocus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- accumulate all context names that contain the "wait" substring | |
repeat with anItem in (complete "wait" as context) | |
set waitingForContextNamesList to waitingForContextNamesList & {(name of anItem)} | |
end repeat | |
choose from list waitingForContextNamesList with prompt "Choose Waiting context…" OK button name "Set" cancel button name "Cancel" | |
set chosenWaitingForContext to result as string | |
set theContextID to id of item 1 of (complete chosenWaitingForContext as context) | |
-- this last line fails even if theContextID is correct | |
set theWaitingForContext to first context whose id is theContextID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment