Skip to content

Instantly share code, notes, and snippets.

@lewdlime
Last active June 9, 2016 19:48
Show Gist options
  • Save lewdlime/c3d7fe3f7f314585779da939202a1c3c to your computer and use it in GitHub Desktop.
Save lewdlime/c3d7fe3f7f314585779da939202a1c3c to your computer and use it in GitHub Desktop.
x-url-callback Workflow using Launch Center Pro, Prizmo, Next, & Evernote. The workflow is made to scan a receipt, send the value to Next, then save the receipt to Evernote.

OCR Workflow: LCP

NOTE: Be aware that when scanning with Prizmo or any other OCR app on iOS, the app will only be able to recognize text if you scan enough of the document for it to catch enough text to register as readable text on the document. What this means is that if you try to scan only the receipt's total, such as 8.26, Prizmo will always fail to capture the text. You have to capture all of of the receipt, then delete any extra text that shows up with the total on the receipt.

Next App Categories

ID Category
1 Gas
2 Grooming
3 Food
4 Home
5 Car
6 Apps
7 Education
8 Train
9 Music
10 Family
11 Software
12 Games
13 ATM
14 Personal
15 Handhelds
16 Books
17 Clothes
18 Drinks
19 News
20 Shopping
21 Art
22 Fitness
23 Movie
24 Web
25 Amazon
26 Travel
27 Decor
LCP Category Parameter List:

[list:Category|Gas=1|Grooming=2|Food=3|Home=4|Car=5|Apps=6|Education=7|Train=8|Music=9|Family=10|Software=11|Games=12|ATM=13|Personal=14|Handhelds=15|Books=16|Clothes=17|Drinks=18|News=19|Shopping=20|Art=21|Fitness=22|Movie=23|Web=24|Amazon=25|Travel=26|Decor=27]

Callback URL:

Please also note the following:

  • First, given that you have these 4 apps available to you, your layout in Next app will most likely be different than the one I have shown below. Next for iOS determines expense category only by category ID and the icon for that given category, so you may have different preferences on what ID means what to you personally. Be sure to change the list values for what you would label them as.
  • Second, in Launch Center Pro, the action IDs for your three actions will be different than the ones I have listed here. For reference, the action ID for a given action can be found at the very bottom of the action's edit screen, and it is easily missed, given that it's font is gray on a light gray background.
  1. prizmo://x-callback-url/captureText?language=en&destination=pasteboard&x-success={{launch://?url=}}[action:271]
  2. evernote://x-callback-url/new-note?type=camera&title=[prompt:Title]&text=[prompt:Text]&x-success={{launch://?url=}}[action:361]&x-cancel=launch:
  3. next://add?category=[list:Category|Gas=1|Grooming=2|Food=3|Home=4|Car=5|Apps=6|Education=7|Train=8|Music=9|Family=10|Software=11|Games=12|ATM=13|Personal=14]&amount=[clipboard]&note=[prompt:Note]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment