Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Frank M

macrumors member
Original poster
Aug 20, 2019
68
4
New Jersey
In my shortcut I retrieve up to 3 events using the “Find Calendar Events” action
(see below).

How would I process multiple events?

If I retrieve a single event I can get the Driving Time correctly, but if I retrieve multiples I can’t seem to code the proper logic to process each event separately.

Thanks for your help in advance.

Frank M

BA6969F6-DB05-4771-BCCB-1ED79410DF58.png
 
Finally resolved my issues with retrieving/
processing multiple Calendar Events.

After retrieving multiple Calendar Events I was using the “Split Text” action to separate each event. This did not work out.

Instead I coded a “Repeat with each item” action and with additional logic was able to present the multiple events (used a Menu action) and then used the selected Menu item (a particular listed Event) to complete the processing cycle.

It was somewhat tricky moving data around but got the shortcut to work as expected, and also got to learn additional ins/outs of coding an iPhone shortcut.

This shortcut may not have a very good practical use but it helped me understand the processing requirements associated with multiple Calendar Events.

If interested I’ve provided a link to my shortcut (see below).

Before using create a few Calendar events using iPhones Calendar app, and also make changes in the shortcut to the “Get Driving Time” and “Send” actions.

Frank M

 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.