Skip to content

Instantly share code, notes, and snippets.

View epramono's full-sized avatar

Eric Pramono epramono

View GitHub Profile
@epramono
epramono / DraftsDelegateNotify
Created May 1, 2014 15:30
This custom Drafts action adds a new task to a list named "Delegated Task" and sends an email delegating it. It requires another custom Email Action called "Delegate Task". Requires: Drafts 3.0, Silo 1.1.
silo://x-callback-url/list/add_note?
title=Delegated%20Tasks&
text=%5B[[line|1]]%5D%3A[[line|3]]&
x-success=
{{drafts://x-callback-url/create?
text=[[draft]]&
action=Delegate%20Task&
x-success=mingle-message%3A%2F%2F}}
@epramono
epramono / MingleDelegateNotify
Created May 1, 2014 15:27
This custom Mingle action uses the contact's `[displayName]` and `[email] information to invoke a custom URL Action in Drafts named "Delegate and Notify". Requires: Mingle 1.0, Drafts 3.0.
drafts://x-callback-url/create?
text=[displayName]%0A[email]%0A[prompt:Task Description]&
action=Delegate%20and%20Notify&
afterSuccess=Delete
@epramono
epramono / DraftsFantasticalEmail
Created May 1, 2014 15:25
This custom Drafts action sends the event alongside a Fantastical URL scheme as an iMessage before adding the event in your Fantastical. It requires another custom Message Action in Drafts called "Message Someone". Requires: Drafts 3.0, Fantastical 2.0.
drafts://x-callback-url/create?
text=[[draft]]%0A{{fantastical2://x-callback-url/parse?sentence=[[line|2]]}}&
action=Message%20Someone&
afterSuccess=Delete&
x-success=
{{fantastical2://x-callback-url/parse?
sentence=[[line|2]]&
x-success=mingle-message%3A%2F%2F}}
@epramono
epramono / MingleFantasticalEmail
Created May 1, 2014 15:22
This Mingle custom action sends a message to that person along with the event information and a Fantastical URL scheme. It requires a custom URL Action in Drafts named "Fantastical and Email". Requires: Mingle 1.0, Drafts 3.0, Fantastical 2.0.
drafts://x-callback-url/create?
text=[email]%0A[prompt:Event]&
action=Fantastical%20and%20Email&
afterSuccess=Delete
@epramono
epramono / MingleRemindSomeone
Created May 1, 2014 15:19
This Mingle action uses the `[email]` information from the selected contact, and two additional `[prompt]` texts. Once all information is collected, it will trigger a custom Drafts Message Action called "Remind Someone". Requires: Mingle 1.0, Drafts 3.0.
drafts://x-callback-url/create?
text=[email]%0A[prompt:Reminder Content]%0A[prompt:Optional Message]&
action=Remind%20Someone&
afterSuccess=Delete
@epramono
epramono / ShareBibleVerse
Created March 9, 2014 13:18
This action will invoke the YouVersion.py in Pythonista, process the clipped verses from YouVersion's Bible app, and share it in any of the four modes. Requires: Launch Center Pro, Pythonista, YouVersion's Bible, Day One, and 1Writer.
pythonista://YouVersion?
action=run&
argv=[clipboard]&
argv=[list:Mode|
New MD Entry in Day One=1|
Append Sermon Notes in 1Writer=2|
Send as iMessage (with content)=3|
Send as iMessage (URL only)=4]
@epramono
epramono / YouVersion.py
Last active July 26, 2021 22:01
This action will convert the Bible verse into a YouVersion's Bible app. Four output modes are available, requiring Day One, 1Writer, and Launch Center Pro.
# -*- coding: utf-8 -*-
import sys
import urllib
import webbrowser
import re
# dictionary for uncommon OSIS codes
books = { "Judges" : "JDG", "1 Samuel" : "1SA", "2 Samuel" : "2SA", "1 Kings" : "1KI", "2 Kings" : "2KI", "1 Chronicles" : "1CH", "2 Chronicles" : "2CH", "Song of Solomon" : "SNG", "Ezekiel" : "EZK", "Joel" : "JOL", "Nahum" : "NAM", "Mark" : "MRK", "John" : "JHN", "1 Corinthians" : "1CO", "2 Corinthians" : "2CO", "1 Thessalonians" : "1TH", "2 Thessalonians" : "2TH", "1 Timothy" : "1TI", "2 Timothy" : "2TI", "Philippians" : "PHP", "Philemon" : "PHM", "James" : "JAS", "1 Peter" : "1PE", "2 Peter" : "2PE", "1 John" : "1JN", "2 John" : "2JN", "3 John" : "3JN" }
# extract the verse reference
@epramono
epramono / MrReaderPhInspect
Created February 5, 2014 23:35
This action will let you open an article from Mr.Reader to Phraseology's Inspect view. Requires: Mr. Reader and Phraseology 2.0.
phraseology://x-callback-url/inspect?
text=[text]&
x-success={mrreader://skip-sync}
@epramono
epramono / 1WriterPhArrangeToClipboard
Created February 5, 2014 23:34
The action will take the currently selected text and open it in Phraseology's Arrange view. The newly arranged text will be stored in the clipboard before the user is redirected to 1Writer. Requires: 1Writer 1.2, Launch Center Pro 2.1, and Phraseology 2.0.
phraseology://x-callback-url/arrange?
text=[text]&
x-success={
launch://x-callback-url/clipboard?
x-success=onewriter%3A}
@epramono
epramono / 1WriterPhInspect
Created February 5, 2014 23:32
This action will take the currently selected text and use the Inspect feature in Phraseology to run analysis on it. Requires: 1Writer 1.2 and Phraseology 2.0.
phraseology://x-callback-url/inspect?
text=[text]&
x-success={onewriter:}