macOS
Shortcuts User Guide
- Welcome
- Copyright
Handling dictionaries using the Get Dictionary Value action in Shortcuts on Mac
To get the value for a particular key in a dictionary, you can use the Get Dictionary Value action and specify the name of the key. To get an object’s phone value, add the Get Dictionary Value action and set it to phone
.
If you want the company name, you can use the dot notation company.name
, as shown in the screenshot below.
The latitude and longitude for each object is stored in address
as a dictionary called geo
, as shown in the screenshot below. Using dot notation, you can access data nested multiple levels deep in a dictionary.
For information on working with multiple items in a dictionary, see Handling lists in Shortcuts on Mac.
Thanks for your feedback.