I think I'm seeing a bug here. Can you help me confirm it?
Select a task that is NOT in your inbox and run this script:
When I run this, I get "Inbox Task" as the class of any and all tasks. I would expect the class to be "task" unless I have a task selected that is in my inbox.
Select a task that is NOT in your inbox and run this script:
Code:
tell application "OmniFocus" to tell front document to tell document window 1 to get class of (value of (item 1 of (selected trees of content)))