This is a bash script that only requires a single command in Terminal and a single swipe on your iPhone to make a phone call. It is an adaptation of my command line Pushover script, so please review that before proceeding below.#

Create a file called callhome at /usr/local/bin with the following contents:#

    #! /bin/bash#

message="tel:8005551212"#

action="Call Home"#

url_title="Make the Call"#

curl -s \#

-F "token=$APP_TOKEN" \#

-F "user=$USER_KEY" \#

-F "title=$action" \#

-F "message=$message" \#

-F "url_title=$url_title" \#

-F "url=tel:8005551212" \#

https://api.pushover.net/1/messages.json

#

Replace the two instances of 8005551212 with a phone number, and $APP_TOKEN and $USER_KEY with your app token and user key.#

Make the script executable: chmod +x callhome.#

Now all you have to do is type callhome from the command line. When you get a notification on your iPhone, swipe it. Pushover will open the supplementary URL, which will dial the number.#


Want to comment? The permalink for this post is http://blog.jeffreykishner.com/2014/07/24/commandLineScriptToMakeYourIphoneDialANumber#

If you include emoji in your Fargo blog (using the [Emoji Cheat Sheet](http://www.emoji-cheat-sheet.com/) format), they will render on your WordPress page in the latest update to my [plugin](http://jeffreykishner.com/wordpress-plugins/post-opml-to-wordpress/).#

Of all the Weird Al videos that have been released so far over his 8-day streak, this one is my favorite. It's clever and well-animated. #

#

[Pushbullet](https://www.pushbullet.com/#) is the best service I've seen so far that will allow me to push info from my phone to my work computer and vice versa. (I cannot install [Command-C](http://danilo.to/command-c) at the office.) I installed the Chrome extension and the iPhone app. From the Chrome extension, I can push a note or a list to the iOS app. This in itself is unremarkable -- I use Pushover all the time for that. But the killer feature is that I can send a link to my phone, and the moment I swipe the notification, that URL will open in the Chrome browser. And if I send an address to my iPhone, after I swipe the notification Google Maps will open to that location. #

Also, I can quickly send the clipboard contents on my iPhone to the desktop extension. This is a lot faster than emailing text to myself or uploading it to Dropbox via Drafts or Launch Center Pro.#

#### IFTTT#

There's an [IFTTT channel](https://ifttt.com/pushbullet) that allows you to push a note, link, file or address to your iPhone. I haven't played around with this, but there are many shared recipes for the channel, and I imagine you can create a recipe to automatically send images from a feed to your device.#

#### URL Schemes#

Pushbullet has [URL schemes](http://docs.pushbullet.com/iphone/). [Bachya](http://www.bachyaproductions.com/ios-url-actions-the-up-to-date-guide/) wrote this bookmarklet to send the current page in your iOS web browser to the Pushbullet app:#

javascript:window.location='pushbullet://compose?type=link&title=' + encodeURIComponent(document.title) + '&url=' + encodeURIComponent(window.location)#

### The Only Downside: Google#

I've been working to become less reliant on Google -- for example, [moving to Fastmail.fm](http://blog.jeffreykishner.com/2013/08/22/anotherPersonMovingToFastmailfm.html). With Pushbullet, you can only sign in with Google, and you have no choice but to open links and addresses in Google Chrome and Google Maps. Granted, their iOS maps app is my default, and I use Chrome for Mac at work, but I still would prefer to have a _choice_.#

### Pushbullet vs. Pushover#

I have been using my [Pushover command line script](http://blog.jeffreykishner.com/2014/05/23/sendTextAndAnActionToDraftsForIosFromTheCommandLine.html) to send text to my phone, and after a recent release, now a swipe of a Pushover notification will open a supplementary URL (if available). This is great, because I can execute Drafts actions with a swipe of a notification. For example I can make my message an URL and the Drafts action "launch url" (which is just `launch://?url=[[draft]]`). This will open a link in Safari for iOS with a single swipe. However, it is definitely less work for me to just open the Pushbullet extension and send a link to my phone that way. #

I will continue to use my Pushover script to execute actions in Drafts, but Pushbullet is more convenient if I just want to quickly send text or a link to my phone.#

I am constantly fidgeting with my productivity apps and system. I was engaged to Paperless for many months, but now I am playing with Todo.txt on the command line and on iOS. As a result, I've been thinking about types of lists and the most appropriate apps for each type of list. #

### 1. Actionable Tasks#

These lists include only tasks that require a physical (measurable/observable) action to mark as complete. This is what the GTD system is all about. Over the years I have used Omnifocus, TaskPaper, Paperless, and now Todo.txt. I have found that -- for me -- text-file-based apps are the best (TaskPaper, Todo.txt). They both support tags/contexts (the @ sign) and projects (the + sign in Todo.txt; a string followed by a : for TaskPaper). I can open them in any text editor, or I can manipulate the text in supported apps. (Jesse Grosjean removed his TaskPaper app from the iOS App Store, but fortunately Ole Zorn created an excellent TaskPaper module for Editorial.)#

#### 1a. Actionable Tasks With "Hard" Due Dates#

Some actionable tasks need to be done at a very specific time, or _by_ a very specific time. "Mail the DVD at 8:30am" or "Go to Trader Joe's at 6pm." These I put in Due or Fantastical/iOS Reminders. #

### 2. "Consumption" Lists#

These are items that I want to consume: books, movies, music tracks, groceries. None of this is urgent (well, except for food). These items do require checkboxes, because once I've rented/downloaded/borrowed/purchased the item, I don't need to do it again (... except for food). I am still using Paperless for this, because the app provides a note field where I can include all the meta info I need (URLs, for example, or who suggested a particular book). And in Paperless, I can uncheck a grocery item to re-add it to my shopping list.#

### 3. Ideas Lists#

I have a list that is more-or-less called, "Things I Need to Remember to Do at Home to Avoid the Wrath of My Wife." Another is "Lunch Ideas." These items should not have checkboxes, because they are reference materials, not one-time (or even recurring) tasks. Right now I have these lists in Listary which pulls notes with a specific tag from Simplenote. You can toggle a setting for a list in Paperless to remove checkboxes and just use the list as a reference. I have also used [Carbonfin Outliner](http://carbonfin.com/) with the checkboxes toggled off for these types of lists.#

***#

Of course, one can store _all_ these lists in simple text files and store them in a single directory. [nvAlt](http://brettterpstra.com/projects/nvalt/) fans do this. But am I either in front of my phone or a work computer, and I cannot sync Dropbox at work. (One can sync an nvAlt folder with Dropbox.) Although I feel too spread out with my various list apps, I do believe that the ultimate test is whether my system supports both "brain dump" and "information access." Can I quickly note down an idea or todo? And can I easily find it later? Part of my problem is that I don't always recall where I put a todo. With this three-part categorical division, I hope I can better recall a todo's location. If it's actionable, it's in Todo.txt or iOS Reminders; if it's about something I want to buy, it's in Paperless; if it's an evergreen list, it's in Listary. We'll see how it goes.#

If you're trying to wrap your head around url schemes, encoding and x-callback-url, listen to this [excellent podcast](http://www.pocketsizedpodcast.com/2014/04/psp152/) in which the hosts of Pocket Sized Podcast interview Alex Guyot.#

Here's [the link to the .m4a file](http://www.pocketsizedpodcast.com/podcast/psp/PSP-152.m4a).#

I recently created an [IFTTT](http://ifttt.com) recipe to add the first url mentioned in a tweet to Instapaper if I favorite the tweet. Now I am concerned that someone will interpret my favorite as condoning the content of a tweet, whereas all it means is that I want to "read it later." A favorite is not the equivalent of a on Facebook.#

#

The newest version of my action ([import it into LCP](https://t.co/1qrvQzVHUp)) includes priorities A-C.#

texttool://x-callback-url/transform?text=[list|clipboard=[clipboard]|prompt=[prompt-return:tasks]]&method=affix&prefix=[-list:priorities|A=%28A%29%20|B=%28B%29%20|C=%28C%29%20|none={{}}][textexpander:ddate]%20&suffix=[-list|no context={{}}|@online=%20%40online|contexts=%20%40[prompt-list( @)]][-list|no project={{}}|+Bills=%20%2BBills|projects=%20%2B[prompt-list( +)]]&scope=lines&x-success={{drafts:///create?text=[[output]]&action=todotxt}}#

So now you can send something like the following to Drafts:#

(A) 2014-07-10 complete task @context +project#

This works with the [Todo.txt](http://todotxt.com) command line interface and the iPhone app. #

Visit the [first post in this series](http://blog.jeffreykishner.com/2014/07/08/aLaunchCenterProActionForTodotxt.html) to get the Drafts Dropbox action, and [the second one](http://blog.jeffreykishner.com/2014/07/09/updateToLaunchCenterProActionToTodotxtMultipleContextsAndProjects.html) for more about the contexts and projects.#

[Yesterday](http://blog.jeffreykishner.com/2014/07/08/aLaunchCenterProActionForTodotxt.html) I posted a Launch Center Pro action to prepend the date and append a single tag to all the items in a list, and then append that text to a file in Dropbox. Since then, I have been using the [todo.txt command line tool](https://github.com/ginatrapani/todo.txt-cli) and decided to upgrade the action.#

This action lets you enter a task and then enter either (a) no tag (I prefer that to "context"); (b) a tag called `@online`; (c) any number of tags; followed by (d) no project; (e) a project called `+bills`; (f) any number of projects. To enter multiple tags or projects you need to hit Return after each, and then Next only when you're done.#

[Import the new action](https://launchcenterpro.com/z14cdz). Or enter the following in the action composer:#

texttool://x-callback-url/transform?text=[prompt-return:tasks]&method=affix&prefix=[textexpander:ddate]%20&suffix=[-list|no tag={{}}|@online=%20%40online|tag=%20%40[prompt-list( @)]][-list|no project={{}}|+Bills=%20%2BBills|project=%20%2B[prompt-list( +)]]&scope=lines&x-success={{drafts:///create?text=[[output]]&action=todotxt}}#

If you can decipher this action then you ought to be able to customize it, e.g., add `+work` in the projects list.#

A blog reader emailed the following question:#

> I have texttool, draft and LCP apps on my iphone.#

> Please help me this issue. #

> I have todo.txt file in directory dropbox/todo/todo.txt #

> I write in draft app one note with multiline line:#

> Task1#

> Task2 #

> Task3 #

> I want to add this list to shown todo.txt (each line separate) in this format: #

> [current date] task1 @grocery #

> [current date] task2 @grocery #

> [current date] task3 @grocery #

> @grocery tag optional and may be replaced with other tag.#

> How to do this?#

Here is a solution that adds the current date before each list item and the single tag of your choice after each list item.#

[Import the LCP action](https://launchcenterpro.com/zlv5l6) or enter the following in the action composer:#

texttool://x-callback-url/transform?text=[prompt-return:tasks]&method=affix&prefix=[textexpander:ddate]%20&suffix=%20%40[prompt:tag]&scope=lines#

When I tap on this action, I enter each list item on a new line (hitting Return after each item except the last) and when I'm done I hit "Next".#

apple#

orange#

banana#

Then the next prompt asks me to enter a tag:#

groceries#

The action outputs the following in TextTool:#

2014-07-08 apple @groceries#

2014-07-08 orange @groceries#

2014-07-08 banana @groceries#

The above action requires that I have a TextExpander snippet called _ddate_ in the following format: %Y-%m-%d, and that I have imported snippets into Launch Center Pro. #

###Prepending the Output to the todo.txt File#

[Import this action](https://launchcenterpro.com/99t4yt) to prepend the output from TextTool to your _todo.txt_ file, or enter the following into the LCP action composer:#

texttool://x-callback-url/transform?text=[prompt-return:tasks]&method=affix&prefix=[textexpander:ddate]%20&suffix=%20%40[prompt:tag]&scope=lines&x-success={{drafts:///create?text=[[output]]&action=todotxt}}#

The above action requires that you [import this Dropbox action](drafts://x-callback-url/import_action?type=dropbox&name=todotxt&path=%2Ftodo%2F&filenametype=2&filename=todo&ext=txt&writetype=1&template=%5B%5Bdraft%5D%5D) into Drafts. Or enter the following as a Dropbox action:#

Name: todotxt#

Path: /todo/#

File (predefined): todo#

Ext: txt#

Write: Prepend#

Template: [[draft]]#

It is possible to accomplish the above without LCP. [Import this URL action](drafts://x-callback-url/import_action?type=URL&name=date-list-tag&url=texttool%3A%2F%2Fx-callback-url%2Ftransform%3Ftext%3D%5B%5Bbody%5D%5D%26method%3Daffix%26prefix%3Dddate%2520%26suffix%3D%2520%2540%5B%5Btitle%5D%5D%26scope%3Dlines%26x-success%3D%7B%7Bdrafts%3A%2F%2F%2Fcreate%3Ftext%3D%5B%5Boutput%5D%5D%26action%3Dtodotxt%7D%7D) into Drafts, or enter the following as an URL action:#

texttool://x-callback-url/transform?text=[[body]]&method=affix&prefix=ddate%20&suffix=%20%40[[title]]&scope=lines&x-success={{drafts:///create?text=[[output]]&action=todotxt}}#

The only difference is that you need to enter the tag name on the first line:#

groceries#

apple#

orange#

banana#

Everything else works exactly the same. (You still need to install the Dropbox action and to import TextExpander snippets.)#

SoundCloud has url schemes to jump to a user or a specific track in the iOS app. I have cobbled the following together after reading a few threads on Stack Overflow.#

###How to Create a User URL Scheme#

Let's get the url scheme for [Tasha Blank](https://soundcloud.com/tashablank). Click on the share icon then choose the Embed tab and then copy the embed code into a text editor. #

#

Look for `api.soundcloud.com/users/`. Copy the numerical string immediately after that, up until the `&`. Put that string after `soundcloud://users/` and you'll get [soundcloud://users/325143](soundcloud://users/325143). If you click on this link on your iOS device, it will bring you to her page. And you can add it to Launch Center Pro in an action or list.#

###How to Create a Track URL Scheme#

Let's get the url scheme for [one of Tasha's recent tracks](https://soundcloud.com/tashablank/live-the-get-down-62614). Click on the share icon then choose the Embed tab and then copy the embed code into a text editor.#

#

Look for `api.soundcloud.com/tracks/`. Copy the numerical string immediately after that, up until the `&`. Put that string after `soundcloud://tracks/` and you'll get [soundcloud://tracks:156299506](soundcloud://tracks:156299506). If you click on this link on your iOS device, it will bring you to that track and start to auto-play. And you can add it to Launch Center Pro in an action or list.#

 #

I don't know how else to get track and user IDs without signing up for a developer account, but if you find a solution, please let me know in the comments or on [Twitter](https://twitter.com/kishner).#

If you're browsing the Tumblr or Instagram apps on your iOS device and want to get the share URL, they are formatted as follows:#

http://NAME.tumblr.com/post/POST_ID/SLUG#

http://instagram.com/p/POST_ID#

Unfortunately, these are web links. What if you want a link that will bring you right to that post ID in the _app_? I have written a couple of Launch Center Pro actions to automate these processes.#

###Tumblr#

The URL scheme for a Tumblr post (as per [GitHub](https://github.com/tumblr/TMTumblrSDK#url-schemes)) is as follows:#

tumblr://x-callback-url/blog?blogName=NAME&postID=POST_ID#

All the information you need is in the web link, but you need to rearrange it all to make it work.#

[Import the Tumblr action](https://launchcenterpro.com/759n6q) or enter the following into LCP:#

texttool://x-callback-url/transform?text=[clipboard]&method=split&delimiter=%2F&lc-icon=tumblr&x-success={{texttool://x-callback-url/transform?text=[[output]]&method=split&delimiter=.&x-success={{drafts:///create?text=[[output]]&action=tumblr-id}}}}#

To make this action work, you will also need TextTool and Drafts. And you will need to [import this URL action into Drafts](drafts://x-callback-url/import_action?type=URL&name=tumblr-id&url=drafts%3A%2F%2F%2Fcreate%3Ftext%3D%7B%7Btumblr%3A%2F%2Fx-callback-url%2Fblog%3FblogName%3D%5B%5Bline%7C3%5D%5D%26postID%3D%5B%5Bline%7C7%5D%5D%7D%7D).#

Let's work with a random Tumblr post to see how this works:#

http://yahoo.tumblr.com/post/90564142294/furthering-our-focus#

Copy this URL to your iOS clipboard, and then tap on the Tumblr action in LCP. LCP sends this string to TextTool, which splits the string at the `/`:#

http:#

#

yahoo.tumblr.com#

post#

90564142294#

furthering-our-focus#

It then takes that output and sends it back to TextTool to split at the `.`:#

http:#

#

yahoo#

tumblr#

com#

post#

90564142294#

furthering-our-focus#

It then sends that output to Drafts and triggers the _tumblr-id_ URL action:#

drafts:///create?text={{tumblr://x-callback-url/blog?blogName=[[line|3]]&postID=[[line|7]]}}#

This action inputs lines 3 and 7 of the draft into the relevant points of the url scheme, and creates a new draft with the final result:#

tumblr://x-callback-url/blog?blogName=yahoo&postID=90564142294#

And just to make the action icon look nice, I added `lc-icon=tumblr`.#

###Instagram#

The Instagram action is more complicated. It requires TextTool, Drafts, and Textastic. [Import the LCP action](https://launchcenterpro.com/w4z9z9) or enter this into a new action:#

textastic://api.instagram.com/oembed?url=[clipboard]&lc-icon=instagram&lc-callback=[list|url=texttool://x-callback-url/transform?text=[clipboard]&method=split&delimiter=%22&x-success={{drafts:///create?text=[[output]]&action=insta-api}}|image=texttool://x-callback-url/transform?text=[clipboard]&method=split&delimiter=%22&x-success={{drafts:///create?text=[[output]]&action=insta-api-url}}]#

Instagram's url scheme for a post is as follows (as per its [iPhone Hooks page](http://instagram.com/developer/iphone-hooks/)):#

instagram://media?id=MEDIA_ID#

The media ID is not part of the web URL. But we can get that info from Instagrams's [Embed API](http://instagram.com/developer/embedding/). Let's use an example post (`http://instagram.com/p/qJu0a-OHMC`) and add it after the `url=`: #

http://api.instagram.com/oembed?url=http://instagram.com/p/qJu0a-OHMC#

This API returns JSON:#

{"provider_url":"http:\/\/instagram.com\/","media_id":"759343924702114562_1483611","title":"Another beautiful day in the city! \ud83d\ude0d","url":"http:\/\/photos-d.ak.instagram.com\/hphotos-ak-xfp1\/10537269_595401073912091_331298792_n.jpg","author_name":"newyorkcity","height":640,"width":640,"version":"1.0","author_url":"http:\/\/instagram.com\/newyorkcity","author_id":1483611,"type":"photo","provider_name":"Instagram"} #

We can see that the media_id is 759343924702114562_1483611. `instagram://media?id=759343924702114562_1483611` would bring us right to that post in the app, but we need the LCP action to automate the process.#

We first need an easy way to grab the HTML of the API results. Textastic has an [url scheme](http://www.textasticapp.com/v4/manual/x-callback-url.html) that lets you download a file and open the HTML in the editor by replacing `http://` with `textastic://`. The first part of the LCP action does just that. However, even though Textastic supports x-callback-url, it doesn't for this particular action. So we need to tap on the share button at top right of the screen after the HTML has downloaded, and choose "Copy All." Then we take advantage of a new feature introduced in LCP: lc-callback. For apps that do not support x-callback-url, this is the next best thing. We define the callback action, but instead of it triggering automatically after the first action, we double-tap on the home button (to get the app launcher) and choose LCP. Once we tap on LCP, the next action gets triggered. #

Because the embed API also provides the raw image URL for the Instagram post, the lc-callback starts with a list. We can get the iOS url scheme ("url") or the raw image URL ("image"). Let's see what happens when you choose "url":#

The entire HTML is sent to TextTool, which splits the string at `"`:#

{#

provider_url#

:#

http:\/\/instagram.com\/#

,#

media_id#

:#

759343924702114562_1483611#

,#

title#

:#

Another beautiful day in the city! \ud83d\ude0d#

,#

url#

:#

http:\/\/photos-d.ak.instagram.com\/hphotos-ak-xfp1\/10537269_595401073912091_331298792_n.jpg#

,#

author_name#

:#

newyorkcity#

,#

height#

:640,#

width#

:640,#

version#

:#

1.0#

,#

author_url#

:#

http:\/\/instagram.com\/newyorkcity#

,#

author_id#

:1483611,#

type#

:#

photo#

,#

provider_name#

:#

Instagram#

}#

This entire string is then sent to Drafts, and the _insta-api_ action is triggered. [Import it into Drafts](drafts://x-callback-url/import_action?type=URL&name=insta-api&url=drafts%3A%2F%2F%2Fcreate%3Ftext%3D%7B%7Binstagram%3A%2F%2Fmedia%3Fid%3D%5B%5Bline%7C8%5D%5D%7D%7D) or enter the following as an URL action:#

drafts:///create?text={{instagram://media?id=[[line|8]]}}#

It simply takes line 8 -- which contains the media_ID -- and inserts into into the URL scheme.#

Now, if we would rather get the raw image URL, we choose "image" after the lc-callback. It also performs a `"` split and sends that output to Drafts, but it instead triggers the _insta-api-url_ action. [Import it into Drafts](drafts://x-callback-url/import_action?type=URL&name=insta-api-url&url=texttool%3A%2F%2Fx-callback-url%2Ftransform%3Ftext%3D%5B%5Bline%7C16%5D%5D%26method%3Dunescape) or enter the following URL action:#

texttool://x-callback-url/transform?text=[[line|16]]&method=unescape#

Line 16 -- the raw image URL -- is sent to TextTool. Why? All the forward slashes in the URL are "escaped" #

http:\/\/photos-d.ak.instagram.com\/hphotos-ak-xfp1\/10537269_595401073912091_331298792_n.jpg#

so we have to unescape them:#

http://photos-d.ak.instagram.com/hphotos-ak-xfp1/10537269_595401073912091_331298792_n.jpg#

This action stops at TextTool. It has sharing features, so you can do what you like with URL: e.g., download the image.#

To make the action icon look nice, I added `lc-icon=instagram`.#

Granted, this LCP action is not fluid. I think it would possible to perform the conversion without the "Copy All" and lc-callback using the JSON parser in Pythonista, but I'm not proficient enough to accomplish that as of this writing. If you write an action that accomplishes the conversion with fewer steps, I would love to hear from you in the comments section or on Twitter.#

**Thanks** to @epramono and @youens on Twitter for helping me to understand LCP 2.3.x at a deeper level.#

I use Paperless for the majority of my list-making on my iOS devices. I've already written [how to mark an item as complete without using the app](http://blog.jeffreykishner.com/2014/02/06/how-to-mark-a-paperless-item-as-complete-without-touching-your-ios-device.html) and [how to view your lists on the web](http://blog.jeffreykishner.com/2014/01/31/view-your-paperless-lists-on-the-web.html). Today, I am going to share a unix command line bash script to "print" incomplete items from a list. #

I created a text file called "prl" and put it in /usr/local/bin/:#

#! /bin/bash#

list=$1#

grep -A 1 \\<\/dateCompleted\> ~/Dropbox/Paperless/$list.xml | sed -n 's:.*\(.*\).*:\1:p'#

I made it executable while in that directory: `chmod +x prl`#

Now, to view the incomplete items in any list, I just type `prl` followed by the list name. If I have a list named Bills, I just type `prl Bills` and the script will output all bills that are due. (This script does not output the notes field.)#

###How It Works#

All your Paperless lists are stored as XML files. I use _grep_ to look for all items for which there is no completion date: `` with _-A 1_ to also print out the lines immediately after each match (which are the list items themselves). Those results are piped into a _sed_ which extracts any string sandwiched between `` and ``.#

If I need to see a note, I can do a quick _grep_: `grep -A 1 verizon ~/Dropbox/Paperless/Bills.xml`. This will output all lines matching _verizon_ plus the lines immediately following, including the XML tags. It's not pretty but it will get me the info I need (e.g., the due date).#

Verizon $100.00#

7/7#

I'm amazed at all the stuff that's available:#

[Dropbox](https://www.dropbox.com/install?os=lnx)#

[An Evernote Client](http://www.geeknote.me/)#

[A Twitter Client](http://www.floodgap.com/software/ttytter/)#

I am a keyboard-shortcut fanatic; adding a note to Evernote with syntax like#

geeknote create --title "A Title" --content "Some content." --tags "tag1"#

beats the evernote.com web interface hands down.#

Granted, the cli doesn't support images, and since I'm ssh-ing into a VPS I can't open media from the command line, but for quick data input/output, nothing beats it. (I'm faster at typing on a physical keyboard than on an iPhone.)#

Today I have released v 2.0 of my plugin, which renders a Fargo OPML file on a WordPress page or blog post using a simple shortcode. The updated version supports the link-blog format (type="idea"). #

View the update and download the zip file [here](http://jeffreykishner.com/wordpress-plugins/post-opml-to-wordpress/).#

_I take credit for none of the following (other than a few personal tweaks) -- just wanting to share [this solution](https://discussion.evernote.com/topic/39792-cant-create-note-links-in-en-ios-clients/) by [Stephen May](https://plus.google.com/108788174443222624607/posts) because it's so cool._#

Evernote does not have much of an url scheme beyond `evernote://` which is not terrible useful for productivity nerds. This solution creates a link that will bring you directly to the note of your choice. It requires Pythonista, Drafts, and Launch Center Pro.#

First, you will need to grab some personal information about your Evernote account, and the only way I know how to find it is via the Mac OS X app. In the left sidebar, [right-click on any note and get the note's link](http://blog.evernote.com/blog/2013/08/02/quick-tip-how-to-use-note-links/). At the beginning of the link, there will be a six digit string and another digit or two following an `s`. You will need this information for a future step. #

Add the following to Pythonista. You can title it `Evernote Link` or whatever you like. Where it says `evernote:///view/123456/s4/` you will replace the six digit string and the `s4` with the information from the note link you copied from the desktop app. Where it says `https://www.evernote.com/shard/s4/sh/` replace the `s4` with the `s..` from your original note link.#

import clipboard#

import sys#

import webbrowser#

import console#

import urllib#

mytext = (sys.argv[1])#

head, sep, tail = mytext.rpartition('/')#

parttwo = head.replace('https://www.evernote.com/shard/s4/sh/', '')#

evernoteurl = ('evernote:///view/123456/s4/' + parttwo + '/' + parttwo + '/')#

webbrowser.open('drafts://x-callback-url/create?text=' + evernoteurl + '&action=Copy%20to%20Clipboard&afterSuccess=Nothing')#

Then add the following action in LCP:#

pythonista://EvernoteLink?action=run&argv=[clipboard]#

### How to Get Your Link#

Go to the Evernote app and tap on any note. Choose "Share " and then "Copy link." Then tap on the LCP action. After the script runs, the direct Evernote link will be in a new draft in Drafts, and also copied to the clipboard. If you make links clickable in Drafts and tap on the link, it will bring you right to that note in Evernote. #

If you care about the privacy of your note, then tap on "Share " again and choose "Stop sharing." Your direct link will still work.#


Want to comment? The permalink for this post is http://blog.jeffreykishner.com/2014/07/01/getADirectLinkToAnyNoteInEvernoteForIos#

© 2014 Jeffrey Kishner.
Last update: Fri, Oct 24, 2014 at 1:52 PM.