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

JasonHB

macrumors 6502a
Original poster
Jul 20, 2010
594
534
Warwickshire, UK
Hi Guys,

I really need some help in creating a Siri Shortcut that I am trying to sort out and I hope that all of you that are much more clever than I, are able to help me out.

What I am trying to do is create a shortcut that allows me to log arrival times and departure times from client visits, along with the current location:-

When I arrive at the clients, I would like this to happen:-

Run Shortcut - Called "Arriving at Client"

Gets my current location
Creates a calendar entry for that location with the current time
(In an ideal world, it would be great if Siri could ask me that client name at that point so that the calendar entry is the clients name, although a dialogue box for text input would also be ok)

This I kind of have working with a few little issues, but it is the following step that I am struggling with.

When I leave the client, I would like this to happen:-

Run Shortcut - Called "Leaving Client"

Opens the "Arriving at Client" calendar entry and sets the end time to the current time.

I have done it currently so that there are 2 calendar entries, one for arriving and one for leaving, but if I was able to do it so that the arrival time and departure time were on the same "appointment" that would be the ideal solution

I think that I am too stupid to work this out, so looking forward to all of your brilliant suggestions.

Thanks in advance

Jason
 
This work?

https://www.icloud.com/shortcuts/c2a752a8ab8241f79fe50e89a2c1d6d4

When importing choose what calendar you want to add to. Didn’t find a way to edit a calendar entry so it creates a new one and deletes the old one. End result is what you want I believe

Edit: It only works with one pending arrival at a time. After it is logged as done you can create a new one on that day
 
That’s a massive help.

Only issue is, that after a very short period, the map pin disappears from the calendar entry for some reason.

Apart from that, it’s almost perfect.

Gives me a great starting point and a better understanding of how they’re put together.

Thank you so much for your efforts.

Jason
 
When testing it’s only the one being deleted where the map data is lost for some reason. Only happens after you press delete. Glad to help
 
I’ve run it a few times today for real and the map data appears on the calendar entry when I “leave” but shortly after it disappears.

The address shows on the appointment, but not the map

Jason
 
Something with stock Calendar app, as I see it too re: no map in Apple app. Tried to force a location by adding a separate fetch of locaction data to add to new Calendar entry.

The Calendar app I use, Fantastical, is showing the map with no issue.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.