From 744a14b5ac428a0c3e6ee20b18110765ad8a295d Mon Sep 17 00:00:00 2001 From: Kennon Bickhart Date: Tue, 23 May 2017 21:48:19 -0400 Subject: [PATCH 1/2] Change Email URL to show the full URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not sure if this is something you care to change, and this is probably more of a personal preference... but I like to be able to script the notes field based on the URLs and having the URL encoded into rich-text means I can't extract that to take action on it. Anyway, this makes the Email URL reference match what you have in OmniFocus. Example note field: ``` Email: message://%3c4WTiSNUIEsHlOgGg4dJ4QQ%40ismtpd078504d1iad1.sendgrid.net%3e – From: "Matt D. Smith" Subject: hey Additional email details here. ``` --- Support/bin/create_task | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Support/bin/create_task b/Support/bin/create_task index 8f147ce..499b2b9 100755 --- a/Support/bin/create_task +++ b/Support/bin/create_task @@ -11,7 +11,7 @@ on run argv set theNote to "" end try - set theMessage to "[url=" & theURL & "]Email[/url]" + set theMessage to "Email: " & theURL tell application id "com.culturedcode.ThingsMac" -- Creating a todo without the quick entry: @@ -21,6 +21,6 @@ on run argv -- set tag names of newToDo to "Work" -- properties can include, for example, 'tag names:"Work"', but I couldn't make that work... - show quick entry panel with properties {name:theName, notes:theMessage & "\n" & theNote} + show quick entry panel with properties {name:theName, notes:theMessage & "\n\n–\n\n" & theNote} end tell end run From ad5db0e7fddad7ea5288e82087d1c6baab65b3a5 Mon Sep 17 00:00:00 2001 From: Kennon Bickhart Date: Tue, 23 May 2017 22:05:40 -0400 Subject: [PATCH 2/2] Update create_task --- Support/bin/create_task | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Support/bin/create_task b/Support/bin/create_task index 499b2b9..bb49260 100755 --- a/Support/bin/create_task +++ b/Support/bin/create_task @@ -21,6 +21,6 @@ on run argv -- set tag names of newToDo to "Work" -- properties can include, for example, 'tag names:"Work"', but I couldn't make that work... - show quick entry panel with properties {name:theName, notes:theMessage & "\n\n–\n\n" & theNote} + show quick entry panel with properties {name:theName, notes:theMessage & "\n–\n\n" & theNote} end tell end run