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
property droppedContext : "Dropped" | |
tell application "OmniFocus" | |
tell front document | |
try | |
set theDroppedContextID to id of item 1 of (complete droppedContext as context) | |
set theDroppedContext to first flattened context whose id is theDroppedContextID | |
on error | |
display alert "No context found whose name contains “" & droppedContext & "”" | |
return |