Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tswicegood/pythings
Simple Python wrapper around Things.app's Applescript interface
https://github.com/tswicegood/pythings
Last synced: 12 days ago
JSON representation
Simple Python wrapper around Things.app's Applescript interface
- Host: GitHub
- URL: https://github.com/tswicegood/pythings
- Owner: tswicegood
- License: other
- Created: 2010-04-21T14:37:24.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-07-25T00:32:23.000Z (over 14 years ago)
- Last Synced: 2024-04-14T14:50:17.265Z (7 months ago)
- Language: Python
- Homepage: http://tswicegood.github.com/pyThings
- Size: 152 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.cddl
Awesome Lists containing this project
README
pyThings
========
Simple, untested, incomplete, hacked together wrapper around Things.app's
AppleScript code that lets you sanely interact with it without a ton of
``get()[n]`` calls.Usage
-----
It attempts to mimic the Thing's AppleScript API where appropriate. One area
that it does simplify is the ability to access the top-level lists. Rather
than having to go through the ``lists`` property, you can access the ``Today``
list directly::from things import Things
t = Things()
t.today.to_dos[0]Likewise, I've started adding some convinence functions in that handle the boolean
checks so you don't have to compare against the ``appscript.k.*`` values by hand.For example::
from things import Things
t = Things()
t.today.to_dos[0].is_complete() # True/False
t.today.to_dos[0].complete()
t.today.to_dos[0].is_complete() == TrueTodo
----
* Expand what ``Things`` object responds to
* Add ``Area`` object
* Add ``Project`` object
* Finish adding the rest of the ``application`` properties that are exposed via AppleScript