The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

AppleScript Requests Thread Tools Search this Thread Display Modes
Originally Posted by whpalmer4 View Post
If you want a feature request to be noticed, use Help->Send Feedback or send email to so that it is logged into the tracking system.
Done. Thanks!
Could someone help me out here.. I have he app for syncing toodledo and OF and I have no clue as how to set up the script to run it. I have the button in the title bar but when I hit it it tells me "AppleScript reported the following error: List is empty." I click on Edit Script and this is in the script Editor

set pathToLib to (path to preferences as string) & "com.ptone.OFTD_lib.scpt"
set tdsync to load script alias pathToLib
tell tdsync to run

It said I in the directions I have to put in my account info

Toodledo account email:

Store Toodledo password: If you choose to store the password, it will be stored in clear text in a plist file in your preferences folder

Toodledo password: Your Toodledo password (If you chose not to store it,you will be asked for it later)
Also Sync Inbox:
Could someone help me out here...
This is my first mac and I only had it for a week... Love it so far but I have lots to learn.. Be easy on me fellas I'm a Virgin!!
Thanks in advance for your time..
Omnifocus - Entourage integration via Quicksilver

Check it out here :
Could the first post be updated with the outstanding AppleScript requests? I'd be happy to chip in here if I know what is required.
I've just had some excellent (!!!!!) tech support from Kris, a support ninja, about the process of exporting an Omnifocus document, then reverting to that exported version as a way of flattening the OF file so that it syncs faster with my iTouch. If someone out there would like to put that process into an apple script, we'd have a one-click way to slim down the file. Many thanks!
Just curious if anyone has had any luck writing a script that would allow you to print a specific perspective? I'd like to have OmniFocus automatically open and print a perspective for work so that when I wake up I can grab my to-do list off the printer.

Is that possible? I know nothing about AppleScript.
My wife and I have a shared dropbox folder where she periodically drops a .txt file list of stuff she'd like me to do from her windows machine, which I open, copy the list and paste it in the inbox, using the method that splits each line into a separate task.

I would love to do something like: have hazel watch that shared folder for a new .txt file, grab it and run an applescript that will do the above automatically.

I'm a complete novice with applescript, but I've done a lot of reading and seen little snippets of script that look like parts of what I would need, but I've had no luck putting them together. Any ideas folks?

Last edited by theurge; 2010-06-26 at 08:12 AM..
I would like an apple script that takes all my available tasks from Omnifocus and outputs them to shell. I could then use this script in Geek tool to embed my active tasks list on my desktop where I can see it.

I did find a script called ListNext.scpt which does something similar, but I can't get it to work quite right - it only seems to display a small fraction of my tasks list, perhaps only those tasks which are actually next actions in a sequently project?

I need to display every task, even the little niggling random ones that get pooled together in a miscellaneous box. I make aggressive use of start dates to ensure that only tasks I could actually consider doing that day are available but if I don't have everything easily visible on my desktop, I always end up forgetting something important.

I used to just export to iCal with the iCal sync to achieve this - literally dragging all my contexts over to my calendar and then using iCalBuddy. However I recently had to upgrade my mobileme calendars so this doesn't work anymore :(
Originally Posted by Lusule View Post
I would like an apple script that takes all my available tasks from Omnifocus and outputs them to shell. I could then use this script in Geek tool to embed my active tasks list on my desktop where I can see it.
I would probably use Sqlite to do this - designing an SQL query that fetches the list you want.

"Available" is used in quite a complex sense in the OF filter system - (tasks which are neither waiting their turn in a sequential project, nor already completed, nor deferred by a future start date (either of their own or inherited from a project or Single Action list), nor out of action because their project or context is on hold or dropped).

I notice, however, that you also use the word "active" to describe the list you want, so perhaps you simply want all tasks which are not completed ?

In any case, a prototype of what you need might look something like this:

property pstrDBPath : "~/Library/Caches/com.omnigroup.OmniFocus/OmniFocusDatabase2"
property pstrFieldDelimiter : tab

-- set strQuery to "PRAGMA TABLE_INFO(Task);"

set strQuery to "
select name from task where dateCompleted is null;

on runquery(strQuery)
	set strCmd to "sqlite3 -separator '" & pstrFieldDelimiter & "' " & pstrDBPath & space & quoted form of strQuery
	do shell script strCmd
end runquery
and you can get a list of the other available fields, and their data types by running the query:

Note that the SQL structure of the OmniFocus cache can change from version to version, so you might have to amend the code next time OF is updated.

Last edited by RobTrew; 2010-11-19 at 09:15 AM..
Originally Posted by RobTrew View Post
I would probably use Sqlite to do this - designing an SQL query that fetches the list you want.
Thanks RobTrew! However I realised when I went away and put my sensible head on that what I wanted was actually a lot simpler than I realised. I went away and created a 'Now' perspective in Omnifocus that did exactly what I want: View Contexts remaining, ungrouped and sorted by context where availability is Available Status is Any Status and Duration is Any Duration.

I then used a nice simple script (below) that I found by Ian McCracken to export the tasks from that context to Geek Tool. I even managed to customise the script so the list organised neatly with bullets!

It's not perfect, since it does seem to change your Omnifocus view to that perspective whether you are doing something else in Omnifocus at the time or not. However for my purposes, that's an acceptable payoff for ease of use.

Anyone could use this script for any preferred perspective by replacing the line

set perspective name to "Now"
set perspective name to "<your perspective here>"
If you want the brackets at the end to show project rather than context, change

set projContext to name of context of oTask
set projContext to name of containing project of oTask
Hope this helps people!

  set taskList to ""
tell application "OmniFocus"
	tell the default document to tell the front document window
		set perspective name to "Now"
		set oTrees to trees of content
		set n to count of oTrees
		repeat with i from 1 to n
			set oTask to value of (item i of oTrees)
			set taskTitle to name of oTask
			set projContext to name of context of oTask
			set taskList to taskList & "     " & taskTitle & "  (" & projContext & ")
		end repeat
	end tell
end tell
return taskList

Last edited by Lusule; 2010-11-19 at 11:58 AM..

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perspective Requests Stephen Brown OmniFocus for iPad 4 2012-02-12 08:01 AM
Two requests gshenaut OmniFocus 1 for Mac 3 2011-01-08 09:06 AM
Feature Requests specialmoves OmniGraffle General 1 2008-06-26 03:54 PM
Feature/UI Requests Jon Hicks OmniWeb General 88 2007-03-15 02:08 PM
Few requests... thestaton OmniWeb Feature Requests 2 2006-11-15 12:57 PM

All times are GMT -8. The time now is 11:54 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2022, vBulletin Solutions, Inc.