COMMENT
Credits:
RH-API - A third party api for features that the offical API doesn’t have - by @alombi
Creating more visually appealing Menus - by @keveridge on reddit r/shortcuts. Linked in routinehub description.
UpdateKit API by @mikebeas
DICTIONARY

Dictionary
VARIABLES
Set variable
Metadata
to
Dictionary
NETWORK
Get contents of
https://updatekit.mikebeas.com/v1
Options Under Construction

Contents of URL
SCRIPTING
Get dictionary from
Contents of URL

Dictionary
VARIABLES
Set variable
UpdateKit Response
to
Dictionary
SCRIPTING
Get
Value
for
update
in
UpdateKit Response

Dictionary Value
SCRIPTING
If
Dictionary Value
is
<value>
SCRIPTING
Get
Value
for
payload
in
UpdateKit Response

Dictionary Value
SCRIPTING
Get dictionary from
Dictionary Value

Dictionary
VARIABLES
Set variable
Package Manager Update
to
Dictionary
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
Yes

Menu Result
NETWORK
Get contents of
https://rh-api.alombi.xyz/shortcut?id=
Metadata
&icon=true
Options Under Construction

Contents of URL
SCRIPTING
Set
icon
to
Contents of URL
in
Dictionary

Dictionary
VARIABLES
Set variable
Metadata
to
Dictionary

Text
SCRIPTING
Set name of
Text
to
updatemenu.vcf

Renamed Item
VARIABLES
Add
Renamed Item
to
UpdateMenu
LIST

List
VARIABLES
Add
List
to
UpdateMenu
SCRIPTING
Choose from
UpdateMenu

Chosen Item
SCRIPTING
Get
Item At Index
5
from
UpdateMenu

Item from List
SCRIPTING
If
Chosen Item
is
Item from List
SAFARI
Open
Package Manager Update
SCRIPTING
Exit shortcut with
Result
SCRIPTING
End If

If Result
SCRIPTING
No

Menu Result
SCRIPTING
End Menu

Menu Result
SCRIPTING
End If

If Result
NOTHING
Nothing
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
Search

Menu Result
SCRIPTING
Ask
Enter a search query, ID or URL

Provided Input
WEB
Get URLs from
Search Querry

URLs
SCRIPTING
If
Search Querry
is
URLs
TEXT
Match
https:\/\/routinehub\.co\/shortcut\/[0-9]+
in
URLs

Matches
SCRIPTING
If
Search Querry
contains
Matches
TEXT
Match
[0-9]+
in
Matches

Matches
SCRIPTING
Otherwise
SCRIPTING
Show alert
Informational Message
SCRIPTING
Exit shortcut with
Result
SCRIPTING
End If

If Result
SCRIPTING
Otherwise
SCRIPTING
Get numbers from
Search Querry

Numbers
SCRIPTING
If
Numbers
is not
Search Querry
NOTHING
Nothing
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
If
If Result
does not have any value
SCRIPTING
URL
Encode
Search Querry

URL Encoded Text
NETWORK
Get contents of
https://rh-api.alombi.xyz/search?q=
URL Encoded Text
Options Under Construction

Contents of URL
SCRIPTING
Get dictionary from
Contents of URL

Dictionary
SCRIPTING
Repeat with each item in
results

Repeat Results
NETWORK
Get contents of
https://rh-api.alombi.xyz/shortcut?id=
Repeat Item
&icon=true
Options Under Construction

Contents of URL
SCRIPTING
Get dictionary from
Contents of URL

Dictionary

Text
SCRIPTING
End Repeat

Repeat Results
TEXT
Combine
Repeat Results
with
New Lines

Combined Text
SCRIPTING
Set name of
Combined Text
to
results.vcf

Renamed Item
SCRIPTING
If
Renamed Item
does not have any value
SCRIPTING
Show alert
Informational Message
SCRIPTING
Exit shortcut with
Result
SCRIPTING
End If

If Result
SCRIPTING
Choose from
Renamed Item

Chosen Item
NUMBER
Chosen Item

Number
SCRIPTING
End If

If Result
NETWORK
Get contents of
https://rh-api.alombi.xyz/shortcut?id=
If Result
&icon=true
Options Under Construction

Contents of URL
SCRIPTING
Get dictionary from
Contents of URL

Dictionary
SCRIPTING
If
id
does not have any value
SCRIPTING
Show alert
Informational Message
SCRIPTING
Exit shortcut with
Result
SCRIPTING
End If

If Result
TEXT
BEGIN:VCARD
VERSION:3.0
N;CHARSET=utf-8:
name
;;;;
ORG:
description
PHOTO;ENCODING=b:
icon
END:VCARD

Text
SCRIPTING
Set name of
Text
to
shortcut.vcf

Renamed Item
VARIABLES
Add
Renamed Item
to
ShortcutMenu
SCRIPTING
Count
Items
in
categories

Count
SCRIPTING
If
Count
is greater than
1
TEXT
Categories

Text
SCRIPTING
Otherwise
TEXT
Category

Text
SCRIPTING
End If

If Result
TEXT
Combine
categories
with
Custom
,

Combined Text
LIST

List
VARIABLES
Add
List
to
ShortcutMenu
SCRIPTING
Choose from
ShortcutMenu

Chosen Item
SCRIPTING
Get
First Item
from
ShortcutMenu

Item from List
SCRIPTING
If
Chosen Item
is
Item from List
SCRIPTING
Set name of
Chosen Item
to
Chosen Item

Renamed Item
DOCUMENTS
Show
Renamed Item
in Quick Look
SCRIPTING
End If

If Result
SCRIPTING
Get
Item At Index
5
from
ShortcutMenu

Item from List
SCRIPTING
If
Chosen Item
is
Item from List
URL
https://routinehub.co/shortcut/
id
/

URL
SHARING
Share
URL
SCRIPTING
End If

If Result
SCRIPTING
Get
Item At Index
6
from
ShortcutMenu

Item from List
SCRIPTING
If
Chosen Item
is
Item from List
NETWORK
Get contents of
https://routinehub.co/api/v1/shortcuts/
id
/versions/latest
Options Under Construction

Contents of URL