Detailed alert list
SCRIPTING
Get dictionary from
Shortcut Input

Dictionary
VARIABLES
Set variable
CustomListItems
to
Dictionary
SCRIPTING
Count
Items
in
CustomListItems

Count
SCRIPTING
If
Count
is
Ask Each Time
SCRIPTING
Show alert
No dictionary submitted!
Title
No dictionary submitted!
DICTIONARY

Dictionary
VARIABLES
Set variable
CustomListItems
to
Dictionary
SCRIPTING
End If

If Result
SCRIPTING
Get
Value
for
MenuName
in
CustomListItems

Dictionary Value
VARIABLES
Set variable
MenuName
to
Dictionary Value
SCRIPTING
Get
Value
for
MultiChoice
in
CustomListItems

Dictionary Value
VARIABLES
Set variable
MultiChoice
to
Dictionary Value
SCRIPTING
Get
All Keys
in
CustomListItems

Dictionary Value
SCRIPTING
Repeat with each item in
Dictionary Value

Repeat Results
SCRIPTING
If
Repeat Item
contains
Item_
SCRIPTING
Get
Value
for
Repeat Item
in
CustomListItems

Dictionary Value
VARIABLES
Set variable
ListItem
to
Dictionary Value
SCRIPTING
Get
Value
for
Name
in
ListItem

Dictionary Value
VARIABLES
Set variable
ListItemName
to
Dictionary Value
SCRIPTING
Get
Value
for
SubText
in
ListItem

Dictionary Value
VARIABLES
Set variable
ListItemSubText
to
Dictionary Value
SCRIPTING
Get
Value
for
Icon
in
ListItem

Dictionary Value
VARIABLES
Set variable
ListItemIcon
to
Dictionary Value

Text
VARIABLES
Set variable
ListCode
to
Text
SCRIPTING
End If

If Result
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
Set name of
ListCode
to
.vcf

Renamed Item
SCRIPTING
Choose from
Set Name
Prompt
[{'class': 'magic', 'value': 'MenuName', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]Select Multiple
MultiChoice

Chosen Item
CONTACTS
Get
Name
from
Chosen Item

Name
Showcuts