Skip to content

Instantly share code, notes, and snippets.

//mock for superagent - __mocks__/superagent.js
var mockDelay;
var mockError;
var mockResponse = {
status: function() {
return 200;
},
ok: function() {
return true;
@Maxim-Filimonov
Maxim-Filimonov / Selected Or Flagged OmniFocus tasks to Pomodoro iPad.scpt
Created February 8, 2012 12:48 — forked from Zettt/OmniFocus tasks to Pomodoro iPad.scpt
Copies selected or flagged tasks in Omnifocus to pomodoro app on ipad
-- Based on http://www.codenauts.com/blog/2011/3/1/importing-activities-from-omnifocus-or-things-to-pomodoro-ap.html and http://forums.omnigroup.com/showpost.php?p=55309&postcount=22
-- Gets selected tasks or flagged tasks and copies them to ~/Dropbox/Pomodoro/tasks.json
tell application "OmniFocus"
-- CONSTANTS change them if you like
set UserHome to (POSIX path of (path to home folder)) as string
set JSONfilename to UserHome & "Dropbox/Pomodoro/tasks.json" as string
set JSONpattern to UserHome & "Dropbox/Pomodoro/*.json" as string
set onePomodoroIsMinutes to 25
set estimateItems to {}