Jump to content

nebaon

Member
  • Content Count

    3
  • Joined

  • Last visited

  1. Still working. Great! I tried around 5 workflows, that´s the one that made it. @Paba: Remember: You have to use the command rottenkey (your api) without hitting enter afterwards.
  2. Hey folks, the workflow as in 3.1 and with the change suggested by cands is still working for finding and manipulating tasks. BUT Omnifocus will not open to show a task / project / context etc. Looks like there is a small bug in the script. Anybody with enough experience here to update the script? Edit 2: I´ll copy the official OF documentation for how to open a specific thing in Omnifocus. That should be the key.. tell application "OmniFocus" tell default document make new document window with properties {perspective name:"Review"} activate "OmniFocus" end tell end tell Edit: An idea: The bug might be the file focus.scpt within in the actions folder of the workflow (you get there by using the steps cands pointed out): on run argv try set theMode to (item 1 of argv) set theObjName to (item 2 of argv) my focusInOF(theMode, theObjName) on error errmsg return errmsg end try end run on focusInOF(theMode, theObjName) tell application "OmniFocus" tell default document if theMode is "c" then set theList to flattened contexts where name = theObjName else if theMode is "p" then set theList to flattened projects where name = theObjName else if theMode is "f" then set theList to flattened folders where name = theObjName end if set oWin to make new document window tell oWin activate if theMode is "c" then set («class FCvm») of oWin to "context" tell sidebar set (selected smart group identifier) to "all-contexts" end tell else set («class FCvm») of oWin to "project" tell sidebar set selected smart group identifier to "all-projects" end tell end if if (count of theList) = 0 then return set theObj to item 1 of theList if theObj is missing value then return if theMode is "p" or theMode is "f" then set focus to {theObj} end if tell sidebar «event OTREisal» {theObj} end tell end tell end tell end tell end focusInOF I tried to locate the author - looks like he´s not around anymore. His blog also is down. Hope we´ll get that running, David
×
×
  • Create New...