Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added version number

  • Loading branch information...
commit 82468c5e21bca4d517c5fa72b340641a4269d45f 1 parent 97810a7
authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  of2reminders-sync.applescript
5  of2reminders-sync.applescript
... ...
@@ -1,8 +1,9 @@
1  
---
--	Created by: Sean Korzdorfer
--	Created on: 02/01/13 12:10:59
--
--	Copyright (c) 2013 MyCompanyName
--	All Rights Reserved
--

(*
  1
+(*
2 2
 OmniFocus2Reminders - Sync
3 3
 Created by: Sean Korzdorfer
4 4
 Created on: 10/23/12 08:53:07
5 5
 Version: 1.0
  6
+Version: 1.0.1 2013-02-01 - script no longer clobbers notes.
6 7
 
7 8
 ## Overview
8 9
 
@@ -26,7 +27,7 @@ Requirements:
26 27
 - In order to send tasks to multiple Reminders lists, the Reminders app list name MUST MATCH the OmniFocus context name.
27 28
 - To use OF2Reminders-sync script, the notes added to both the OmniFocus and Reminders tasks MUST exist.
28 29
 
29  
-*)

(* ################################ Script ################################ *)

property contextList : {"costco", "trader joe's", "petsmart", "target", "price chopper", "cvs", "Petco"}
property ofNote : ""
property remNote : ""

tell application "Reminders"
	
	if (count of (reminders whose completed is true and body contains "omnifocus:///")) > 0 then
		set completedList to reminders whose completed is true and body contains "omnifocus:///"
		repeat with theTask in completedList
			set ofID to my getID(body of theTask, "omnifocus://")
			if my completeOFTask(ofID, body of theTask) is true then
				set body of theTask to my deleteLine(body of theTask, "omnifocus://")
			end if
		end repeat
	end if
end tell

(* 
  30
+*)

(* ################################ Script ################################ *)

property contextList : {"costco", "trader joe's", "petsmart", "target", "price chopper", "cvs", "Petco"}


tell application "Reminders"
	
	if (count of (reminders whose completed is true and body contains "omnifocus:///")) > 0 then
		set completedList to reminders whose completed is true and body contains "omnifocus:///"
		repeat with theTask in completedList
			set ofID to my getID(body of theTask, "omnifocus://")
			if my completeOFTask(ofID, body of theTask) is true then
				set body of theTask to my deleteLine(body of theTask, "omnifocus://")
			end if
		end repeat
	end if
end tell

(* 
30 31
 ################################ Delete the OmniFocus URI from Reminders Task ################################ 
31 32
 
32 33
 Input: The note text of the Reminders script

0 notes on commit 82468c5

Please sign in to comment.
Something went wrong with that request. Please try again.