vCard Menu Template
COMMENT
INSTRUCTIONS:
Change all of the information in the dictionary below to reflect the info for your Shortcut.
Note: you wont have the RoutineHub Id until after you upload your Shortcut.
Also, you can delete this comment.
DICTIONARY

Dictionary
DICTIONARY

Dictionary
SCRIPTING
Repeat with each item in
menu

Repeat Results
SCRIPTING
Get
All Values
in
Repeat Item

Dictionary Value
SCRIPTING
Repeat with each item in
Options

Repeat Results

Text
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
End Repeat

Repeat Results
TEXT
Repeat Results

Text
SCRIPTING
Set name of
Text
to
mainMenu.vcf

Renamed Item
SCRIPTING
Choose from
Renamed Item
Prompt
[{'class': 'magic', 'value': 'menu.text.prompt', 'glyph': '', 'UUID': '18716FE6-D88A-4987-9948-85C9C69DA293'}]

Chosen Item
CONTACTS
Get
Name
from
Chosen Item

Name
SCRIPTING
If
Name
is
Option One
TEXT
You chose
menu.optionOne.title
!
You can also grab the subtitle:
menu.optionOne.sub
We were able to use `Show Result` because the `If Statement` for [Name is Option One] was true.
This is becasue we use dot notation to grab the value from `menu.optionOne.title`, which is `Option One`.

Text
SCRIPTING
Show
Text
SCRIPTING
End If

If Result
SCRIPTING
If
Name
contains
Two
TEXT
You chose
menu.optionTwo.title
!
For this one the `Show Result` worked because option two's title contains the work "Two".
Meaning the 'If Statement` was true.
Now, try making option three do something!

Text
SCRIPTING
Show
Text
SCRIPTING
End If

If Result
SCRIPTING
If
Name
is
Update
DICTIONARY

Dictionary
NETWORK
Get contents of
https://updatekit.mikebeas.com/v1
Options Under Construction

Contents of URL
SCRIPTING
Get dictionary from
Contents of URL

Dictionary
SCRIPTING
Get
Value
for
update
in
Dictionary

Dictionary Value
SCRIPTING
If
Dictionary Value
is
version
TEXT
-–————————•⛭•————————–-
There was a update released on:
payload.release
!
Here are the release notes:
payload.notes
-–————————•⛭•————————–-
Would you like to update to version
payload.version
?

Text
SCRIPTING
Show alert
-•⛭⛭⛭
version
• Version:
name
⛭⛭⛭•-
Title
[{'value': '-•⛭⛭⛭\uf8ff ', 'class': 'text'}, {'class': 'magic', 'value': 'version', 'glyph': '', 'UUID': '2A99E6AC-7233-42FD-A077-A462B9F27572'}, {'value': ' • Version: ', 'class': 'text'}, {'class': 'magic', 'value': 'name', 'glyph': '', 'UUID': '2A99E6AC-7233-42FD-A077-A462B9F27572'}, {'value': ' \uf8ff ⛭⛭⛭•-', 'class': 'text'}]
SCRIPTING
Get
Value
for
payload.download
in
Contents of URL

Dictionary Value
SAFARI
Open
Dictionary Value
SCRIPTING
Otherwise
TEXT
-•⛭
name
• Version:
version
⛭•-
-–————————•⛭•————————–-
name
is up to date!

Text
SCRIPTING
Show
Text
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
If
Name
is
Close
SCRIPTING
Exit shortcut with
Result
SCRIPTING
End If

If Result
Showcuts