Shopping List
COMMENT
This shortcut will place an item into an Apple Reminder list named “Shopping” when the item name is passed to it from another shortcut using the Run “Shopping” Shortcut command. Make certain the Run “Shopping” Shortcut command passes the item name.
It:
- Avoids duplicate entries
- Vibrates once when item is added
- Vibrates twice if the item will be duplicated
- Notifies accordingly
I originally created it for use with NFC tags created using Apple Shortcuts “Personal Automations” and it’s within those automations that I pass the item name. Subsequently, I was given a very creative barcode reading “Shopping” list Shortcut which I modified to use this as well.
Enjoy!
VARIABLES
Set variable
Item
to
Shortcut Input
REMINDERS
Find
All Reminders
where
[{'class': 'filter-property', 'value': 'List'}, {'class': 'filter-operator', 'value': 'is'}, {'class': 'filter-benchmark', 'value': 'default'}]

Reminders
SCRIPTING
Repeat with each item in
Reminders

Repeat Results
SCRIPTING
If
Repeat Item
is
Item
VARIABLES
Set variable
Go
to
Repeat Item
SCRIPTING
Otherwise
SCRIPTING
End If

If Result
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
If
Go
does not have any value
SCRIPTING
Vibrate device
REMINDERS
Add
Item
to
Shopping
with
No Alert
Options Under Construction

New Reminder
NOTIFICATIONS
Show notification
Input
Options Under Construction
SCRIPTING
Otherwise
SCRIPTING
Vibrate device
SCRIPTING
Vibrate device
NOTIFICATIONS
Show notification
Input
Options Under Construction
SCRIPTING
End If

If Result
Showcuts