Skip to content

Instantly share code, notes, and snippets.

View epramono's full-sized avatar

Eric Pramono epramono

View GitHub Profile
@epramono
epramono / CreateURLAction
Created August 5, 2013 08:30
If you want to compose your own custom URL actions in Drafts, you're going to need this action. This is one of my most frequently used actions. It will create a new URL action in Drafts whose name equals to `[[title]]` and the URL equals to `[[body]]` of the current post. Requires: Drafts 2.5
drafts://x-callback-url/import_action?
type=URL&
name=[[title]]&
url=[[body]]
@epramono
epramono / EncodeURLToClipboard
Created August 5, 2013 08:39
When you're composing your own custom URL actions in Drafts, you often find yourself in need of a simple URL encoding service to encode parts of your action. If you have Launch Center Pro installed, you can use this action to encode the current content of your post and store the encoded version in the clipboard. Requires: Drafts 2.5 and Launch C…
drafts://x-callback-url/create?
text=[[draft]]&
action={{Copy to Clipboard}}&
x-success=
{{launchpro-clipboard://x-callback-url/convert?
format=urlencode&
x-success=drafts%3A%2F%2F}}
@epramono
epramono / SearchOnGeeksWithJuniors
Last active December 20, 2015 15:29
This is a simple action that I use quite often to find my own posts that have been published earlier. It will take the content of the current post in Drafts and use it as a search keyword for a site search on Geeks with Juniors. The result will be shown in Chrome. Requires: Drafts 2.5 and Chrome.
googlechrome-x-callback://x-callback-url/open/?
url={{http://www.geekswithjuniors.com/display/Search?moduleId=17668996&searchQuery=}}+[[draft]]&
x-source=Drafts&
x-success={{drafts://}}
@epramono
epramono / AddEventsToFantastical
Last active December 20, 2015 15:29
This simple action allows you to convert each line in your current Drafts post into separate events in Fantastical. Requires: Drafts 3.5.4 and Fantastical 1.1.1.
fantastical://x-callback-url/parse/?
sentence=[[title]]&
x-cancel=
{{drafts://x-callback-url/create?
text=[[body]]&
action=Add%20Events%20to%20Fantastical&
allowEmpty=NO&
afterSuccess=Delete}}&
x-success=
{{drafts://x-callback-url/create?
@epramono
epramono / AddRemindersToDue
Last active December 20, 2015 15:29
This action allows you to convert each line in your current Drafts post into separate reminders in Due. Requires: Drafts 3.5.4 and Due 1.8.
due://x-callback-url/add?
title=[[title]]&
x-source=Drafts&
x-cancel=
{{drafts://x-callback-url/create?
text=[[body]]&
action=Add%20Reminders%20to%20Due&
allowEmpty=NO&
afterSuccess=Delete}}
&x-success=
@epramono
epramono / CallSomeoneLater
Created August 5, 2013 09:26
This action will create a reminder in Due to call someone in your Contacts using Launch Center Pro's dial URL. The recipient name will be stored by the reminder into the clipboard just in time for the call. You need to paste the clipboard content into the Launch Center Pro's dial search box to find the appropriate contact before making the call.…
due://x-callback-url/add?
title=Call%20[[title]]%20at%20[[body]]%0A
{{drafts://x-callback-url/create?
text=[[title]]&
action=Copy%20to%20Clipboard&
x-success=launchpro-dial%3A&
afterSuccess=Delete}}&
x-source=Drafts&
x-success={{drafts://}}
@epramono
epramono / JournalLater
Created August 5, 2013 09:35
This action allows you to set a reminder in Due to write a full journal in Day One regarding an event that has just occurred at the time you're setting the reminder. The first line of your Drafts post will be used as the title of the new Day One post, whereas the second line is used as the date/time when you want to be reminded. Requires: Drafts…
due://x-callback-url/add?
title=Write%20a%20Journal%20about%20[[title]]%20at%20[[body]]%0A
{{dayone://post?
entry=%23%20[[title]]%0A}}&
x-source=Drafts&
x-success={{drafts://}}
@epramono
epramono / AddTaskToSiloAndWait
Last active December 20, 2015 18:09
This action allows you to convert each line in your current Drafts post into separate tasks in Silo. Silo allows you to insert each new task into an existing list or a newly created list. Because Silo doesn't show you the task being added, I decided to make this recursive action waits for user input to continue adding the next line in Drafts. Th…
silo://x-callback-url/note/add?
text=[[title]]&
x-success={{drafts://x-callback-url/create?text=[[body]]}}
@epramono
epramono / RemindSomeone
Last active October 2, 2018 23:26
This action allows you to send an iMessage that embeds a custom URL scheme that would allow the recipient to add it as a new Reminder in Due, if she has Due installed and is willing to add the reminder. Simply create a new post in Drafts with the recipient's email address as the first line, and the reminder text that will be parsed by Due on the…
launchpro-messaging://x-callback-url/?
to=[[title]]&
body=[[body]]%0A%0A
{{due://x-callback-url/add?title=[[body]]}}
&x-success={{drafts://}}
@epramono
epramono / Meet Someone for an Hour
Created September 10, 2013 16:20
This action allows you to create an event in Fantastical to meet someone for an hour and embed a URL to search for a pre-defined 60-minute timer in Due entitled "1-Hour Meeting". The idea is to trigger the timer when the event starts. You may need to activate the Fantastical alarm to trigger at the time of the event. Requires: Drafts 3.0.6, Due …
fantastical://x-callback-url/parse/?
sentence=Meet%20[[line|1]]%20at%20[[line|2]]%20for%20an%20hour%0A
{{due://x-callback-url/search?
section=Timers&
query=1-Hour%20Meeting}}&
x-cancel={{drafts://}}&
x-success={{drafts://}}