LCPActions

From bt3.com
Jump to: navigation, search


!

This page is overly-technical. That means the solutions below can be achieved more elegantly and in a manner that's ultimately more readable when adapting for use in other scenarios.


What it is

A few sample Launch Center Pro (LCP) Actions.[1]

It may help, when preparing to create a new action, to understand that LCP (an app centred around URL schemes) expects control codes or non-alphanumeric characters to be converted to their hexadecimal equivalents - i.e. URL-encoded.

It's easier than it looks! Also, the majority of the time URL-encoding is unnecessary - one can enclose the text in curly braces and it'll work fine without the hard-to-read code.

<jedi>This is not the resource you are looking for - you want to read the app's help.</jedi>

What you need

(In the iPhone App Store, see also external links at the bottom of the page.)

Samples

Display occurrences of the #QuoteSunday hashtag using Felix:
  1. Simply passes "quotesunday" to Felix and starts a hashtag search.
felix://hashtag/quotesunday
Display occurrences of a pre-populated list of hashtags, using Felix
  1. Passes a selected item in a list to Felix and starts a hashtag search.
The items in the list - which starts with a "Hashtag?" prompt and a "|" - are separated by the "|" character.
felix://hashtag/[list:Hashtag?|themeMonday|Tuesdaychallenge|Wedc|wedcTheme|quoteSunday]
Search WikiQuote for quotations:
  1. Opens a dialogue asking for "Search Terms" and then searches Wikiquote.org for the text just input.
http://en.m.wikiquote.org/wiki/[prompt:Search Terms]
Paste a #QuoteSunday quotation from the clipboard, add a bit of formatting then post via Felix:

A little more complex this example:

  1. Assumes the user has already copied a quotation from Wikiquote (or elsewhere) to the iOS clipboard.
  2. Starts a new Felix post with a leading quotation mark character.
  3. Pastes the contents of the iOS clipboard and two linefeeds,
  4. Adds a hash character and "QuoteSunday".
(Requires user intervention before posting, to tidy up from the original text and to add a trailing quotation mark, and to press the post button.)
felix://compose/post?text=%22[clipboard]%0A%0A%23QuoteSunday
Patter #WedCTheme post & broadcast

Even more complex. Perhaps a look at the App's help would be in order before starting this one?

  1. Opens Patter with an x-callback-url thingy (eeek!),
  2. Starts to compose a new post to Patter channel 2443 (Writers Write,)
  3. Adds the URL-encoded text "Time to choose a #WedCTheme everyone! Got any ideas?" plus 2 linefeeds,
  4. Pauses for user input "Suggestion", adds 2 linefeeeds,
  5. Adds a link to the #WednesdayChallenge entry at the ADN Wiki,
  6. Finally adds 2 linefeeds - in case any more text is required.

After this executes it will automatically add a link back to the patter room. There's still a useful amount of text remaining to add a suggestion and a bit of closing text.

There is no linefeed part-way through this - copy and paste it all.

patter://x-callback-url/composeMessage?channel=2443&text=Time%20to%20choose%20a%20%23WedCTheme%2C%20everyone%21%20Got%20any%20ideas%3F%0A%0A[prompt:Suggestion]%0A%0Ahttp%3A%2F%2Fappdotnetwiki.net%2Fw%2Findex.php%3Ftitle%3DWednesdayChallenge%0A%0A

External links

Footnotes

  1. You probably know what it does if you're here.