brandonpittman / omnifocus Goto Github PK
View Code? Open in Web Editor NEWScripts for OmniFocus
Home Page: http://blp.is/focusing
Scripts for OmniFocus
Home Page: http://blp.is/focusing
set nFlagged to count (every available task of every flattened context whose flagged is true)
set nFlagged to count (every available task of flattened contexts whose flagged is true)
-- 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
Brandon, can you help me find this? I put the omnifocus.scpt in scripts but apparently this isn't the right location. I don't have the exact file path.
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?
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.
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
Do something! @home ::misc #5pm #tomrrow //This is a note
The description of the repo links to http://brandonpittman.net/omnifocus, which redirects to https://blp.is/omnifocus, which is a 404.
It looks like the link should point to https://blp.is/focusing.
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 }
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.