Skip to content

Instantly share code, notes, and snippets.

View epramono's full-sized avatar

Eric Pramono epramono

View GitHub Profile
@epramono
epramono / 1WriterPhraseology
Created February 5, 2014 23:29
This action will take the currently selected text in 1Writer and open it as a new document in Phraseology. Requires: 1Writer 1.2 and Phraseology 2.0.
phraseology://x-callback-url/create?
title=[name]&
text=[text]
@epramono
epramono / LCPPhraseology
Created February 5, 2014 23:27
This action will prompt for a Dropbox file and load as a new document in Phraseology. Requires: Launch Center Pro 2.1 and Phraseology 2.0.
phraseology://x-callback-url/create?
title=[prompt-text:Document Name]&
text=[dropbox-text]
@epramono
epramono / LCPExportAction
Created January 30, 2014 17:47
This Launch Center Pro 2.2 action will export the URL currently stored in the clipboard to another iOS device via Command-C. Requires: Launch Center Pro 2.2, TextTool, and Command-C.
texttool://x-callback-url/transform?
text=[clipboard]&
method=encode&
x-success={{command-c://x-callback-url/copyText?
deviceName=[list:Device|iPad 2=Eric Pramono's iPad|iPad Mini=Philip's iPad Mini]&
text=launch%3A%2F%2Fimport%3Furl%3D%5B%5Boutput%5D%5D}}
@epramono
epramono / LCPMrReader
Created January 30, 2014 17:44
This is a Mr. Reader action to let you send the currently selected text to Launch Center Pro 2.2 to be read along.
launch://x-callback-url/speak?
text={[TEXT-SELECTED]}&
speed=0.2&
x-success={mrreader://skip-sync}
@epramono
epramono / LCPSpeakDefine
Created January 30, 2014 17:42
Launch Center Pro 2.2's speak and define actions.
launch://speak?text=&speed=
launch://define?text=
@epramono
epramono / TweetLongerViaDropbox
Created January 30, 2014 17:40
This Launch Center Pro 2.2 action allows you to tweet longer than 140 characters by storing the characters in a Dropbox text file, and send the link via Tweetbot. Requires: Launch Center Pro 2.2, TextExpander, and Tweetbot.
launch://x-callback-url/dropbox/new?
text=[clipboard]&
path=%2FPublic&
name=<xdts>.txt&
getlink=YES&
x-success={{launch://?url=
tweetbot%3A%2F%2Fepramono%2Fpost%3Ftext%3D%5Bclipboard%5D}}
@epramono
epramono / LCPDropboxTextActions
Created January 30, 2014 17:38
A set of Launch Center Pro's Dropbox text actions in version 2.2.
launch://dropbox/new?text=&path=&name=
launch://dropbox/append?text=&path=&name=
launch://dropbox/prepend?text=&path=&name=
@epramono
epramono / AlfredTo1Password
Created January 17, 2014 16:50
This AppleScript will accept `1pbrowse` in Alfred and open the current active tab in Safari on 1Password's browser for iOS. Requires: Alfred 2 + Power Pack, Command-C 1.0, and 1Password 4.
set theActiveURL to ""
tell application "Safari"
set theActiveWindow to first window
set theActiveTab to current tab of theActiveWindow
set theDecodedURL to URL of theActiveTab as string
set theActiveURL to my urlencode(theDecodedURL) as string
end tell
tell application "System Events"
@epramono
epramono / AlfredToFelix
Created January 17, 2014 16:40
This AppleScript will accept `felix <item>` in Alfred and translate it to x-callback-url invocation on iOS - involving Command-C and Felix. Requires: Alfred 2 + Power Pack, Command-C 1.0, and Felix.
tell application "System Events"
set theDevice to my urlencode("Eric Pramono’s iPhone") as string
set theQuery to my urlencode("{query}") as string
set theURL to "command-c://x-callback-url/copyText?deviceName=" & theDevice & "&text=felix%3A%2F%2Fcompose%2Fpost%3Ftext%3D" & my urlencode(theQuery)
open location theURL
end tell
on urlencode(theurl)
@epramono
epramono / AlfredToMomento
Created January 17, 2014 16:39
This AppleScript will accept `momento <item>` in Alfred and translate it to x-callback-url invocation on iOS - involving Command-C and Momento. Requires: Alfred 2 + Power Pack, Command-C 1.0, and Momento.
tell application "System Events"
set theDevice to my urlencode("Eric Pramono’s iPhone") as string
set theQuery to my urlencode("{query}") as string
set theURL to "command-c://x-callback-url/copyText?deviceName=" & theDevice & "&text=momento%3A%2F%2Fcommand%2Fnewmoment%3Ftext%3D" & my urlencode(theQuery)
open location theURL
end tell
on urlencode(theurl)