Skip to content

Instantly share code, notes, and snippets.

View maguay's full-sized avatar
🔨
building something new.

Matthew Guay maguay

🔨
building something new.
View GitHub Profile
@cmod
cmod / things-top-todo.json
Created July 25, 2018 08:23
Touch Bar addition: Latest todo in Things
This file has been truncated, but you can view the full file.
{
"BTTWidgetName" : "Things To Do Today",
"BTTTriggerType" : 639,
"BTTTriggerTypeDescription" : "Apple Script Widget",
"BTTTriggerClass" : "BTTTriggerTypeTouchBar",
"BTTPredefinedActionType" : 195,
"BTTPredefinedActionName" : "Run Apple Script (async in background)",
"BTTInlineAppleScript" : "tell application \"Things3\"\r\tset firstItem to item 1 of every to do of list \"Today\"\r\tset firstName to name of firstItem\r\tdisplay notification \"COMPLETED: \" & firstName\r\tset status of firstItem to completed\rend tell",
"BTTScriptType" : "AppleScript",
"BTTEnabled2" : 1,
@philgruneich
philgruneich / Safari to Byword formatted as a Kirby post
Created June 26, 2013 03:29
I was looking for a solution for the absence of window.getSelection in the iPhone Safari. Decided to use the clipboard, integrating it with Drafts with more data to create a blog post at Byword, formatted for a Kirby post. Oh, we also create a Evernote note in the way (:
1. Add this bookmarklet to Safari:
javascript:window.location='drafts://x-callback-url/create?text='+encodeURIComponent(document.title+'%5Cn')+encodeURIComponent(location.href)+'&action=Kirbylity'
2. Add an Evernote or Dropbox action, I'm using an Evernote action called Blogquotes.
3. Add this action to Drafts, named Kirbylity:
drafts://x-callback-url/create?text=[[draft]]&action=Blogquotes&afterSuccess=Delete&x-success={{byword://new?text=Title:%20[[title]]%0d----%0dLink:%20[[body]]%0d----%0dExcerpt:%20%3e[[clipboard]]%0d----%0dText:%20%3e[[clipboard]]}}