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).#

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