Code Monkey home page Code Monkey logo

omnifocus's Issues

SmartPerspective applescript ignores folders/projects that only have tasks without contexts.

  • I'm kinda new to this whole GitHub thing, so please forgive me for not forking/pull requesting/etc.
  • I have many projects that only have tasks without contexts.
    • I use contexts as true dependencies; so if a task can be completed basically anywhere, it gets no context.
  • The SmartPerspective applescript treats projects with only tasks without contexts as if they had no available tasks (e.g., nFlagged = 0).
  • I found that this can be fixed by changing the code
    set nFlagged to count (every available task of every flattened context whose flagged is true)
    to
    set nFlagged to count (every available task of flattened contexts whose flagged is true)
  • Apparently "every flattened context" returns only actual contexts, and does not include "missing value" (i.e., no context).
  • Depending on usage, you may wish to change this for each perspective you want to check.
  • Once again, thank you for this awesome script. I'm going to give some thought about how this could be combined with airplane or some other wifi-based location system to run different series of perspectives depending on whether you're at home, at work, etc.
  • Sure wish I had this on OmniFocus 2 for iPhone! :-)

SmartPerspective applescript ignores tasks that inherit flags 2+ levels deep.

  • Edi Venturin noted that his code for the Flagged section doesn't pick up tasks that inherit flags 2+ levels deep.
  • I think the following code fixes the problem!
            -- Flagged
            set nFlagged to count ((every flattened task) whose (flagged is true) and (completed is false) and (blocked is false))
            if (nFlagged) > 0 then
                my conditions("Flagged")
                return
            end if
  • I hope it's helpful.

Hierarchical contexts

I'm trying to manage delegated tasks in OmniFocus by adding a "delegated" context and sub-contexts "Alice", "Bob", etc. for each person to which I'm delegating a task. My objective is to write a script to send to each person a reminder with a list with delegated jobs by email.

In my tests I was not able to recognize that "Alice" is a sub-context of "delegated". This is, when querying the context for a task "Demo" with context "Delegated : Alice" task.context.name() returns just "Alice" but not the parent "Delegated".

Is there a way to access the hierarchy of contexts?

Where is OmniFocus JavaScript for Automation (JXA) Library?

Hi Brandon (@brandonpittman),
Can you please provide a link to the JXA script library you previously published for OmniFocus?
I much prefer JXA over AppleScript, and would like to use it.

I realize it is depreciated now, but it would still be helpful to me.
Thanks.

You wrote:

I had previously written an OmniFocus library using JavaScript for Automation, but it’s got issues that vanilla AppleScript does not.

Function documentation

Hi. I have looked at the readme and the website but I could not find much information on the functions and what they do. They do not all seem intuitive to me (but maybe that is because I have not written applescripts for OmniFocus before.

Do you think I should be looking somewhere else for this information or do you think I'll be fine once I get started?

Thanks

Coercing error in OmniFocus Pomodoro script (OmniFocus 3)

of_pomodoro_error

I get an execution error on two different machines when trying to use the OmniFocus Pomodoro script:

Can't make <<class FCdw>> id 25335 of <<class FCDo>> into type integer. (-1700) I am unfamiliar with AppleScript: is there a solution to this?

Can't load lib

Having trouble loading the library, consistently getting an error.

Complied script placed here: https://cloudup.com/chgGvgXxRo0

Node app creating script here: var script = "of = Library('OmniFocus');"

Getting this error: err { [Error: 0:2: syntax error: A “of” can’t go here. (-2740) ] appleScript: 'of = Library(\'OmniFocus\');', exitCode: 1 }

Installation issue

Hi. When I use pip to install de package, I get an error message. I'm using anaconda.

(base) MBPdeBenedetto:~ jmbenedetto$ pip install pyomni==0.1.6.1
Collecting pyomni==0.1.6.1
Using cached pyomni-0.1.6.1.tar.gz (43 kB)
ERROR: Command errored out with exit status 1:
command: /Users/jmbenedetto/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/29/7tn4pd3n0_s98m6p6z0cjlvm0000gn/T/pip-install-v1bex1my/pyomni/setup.py'"'"'; file='"'"'/private/var/folders/29/7tn4pd3n0_s98m6p6z0cjlvm0000gn/T/pip-install-v1bex1my/pyomni/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/29/7tn4pd3n0_s98m6p6z0cjlvm0000gn/T/pip-pip-egg-info-i1etf175
cwd: /private/var/folders/29/7tn4pd3n0_s98m6p6z0cjlvm0000gn/T/pip-install-v1bex1my/pyomni/
Complete output (12 lines):
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/29/7tn4pd3n0_s98m6p6z0cjlvm0000gn/T/pip-install-v1bex1my/pyomni/setup.py", line 3, in
import pyomni
File "/private/var/folders/29/7tn4pd3n0_s98m6p6z0cjlvm0000gn/T/pip-install-v1bex1my/pyomni/pyomni/init.py", line 2, in
from pyomni.pyomni import PyOmni
File "/private/var/folders/29/7tn4pd3n0_s98m6p6z0cjlvm0000gn/T/pip-install-v1bex1my/pyomni/pyomni/pyomni.py", line 10, in
from pyomni.webdav.WebdavClient import CollectionStorer
File "/private/var/folders/29/7tn4pd3n0_s98m6p6z0cjlvm0000gn/T/pip-install-v1bex1my/pyomni/pyomni/webdav/WebdavClient.py", line 885
except AuthorizationError, e:
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.