ShareShortcuts

Sleep Well Calendar Tomorrow

This shortcut returns results from your calendars that occur 'Tomorrow'

aylwardreed
Fork “Sleep Well Calendar Tomorrow”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so aylwardreed gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
57K
Saved
1
Actions
11
Category
Productivity
Version
1.0
Language
EN

This shortcut returns results from your calendars that occur 'Tomorrow'.

It is meant to be used as part of iOS 14's Wind Down feature.

Visit smallbites.me/creating-ios14-wind-down-shortcuts/ for full details as to how this works.

Created by Jonathan Reed

www.smallbites.me

@aylwardreed

What's New

Version 1.0

First release

Version History
1.0 Aug 30, 2020

First release

What it does

11 actions
  1. Comment
    This shortcut returns results from your calendars that occur 'Tomorrow'. As it is meant to be used as part of iOS 14's Wind Down feature, 'tomorrow' means the next day. For example, it will return the same results if you access it at 10pm at night o…
  2. Date
  3. Adjust Date
  4. Adjust Date
  5. Get Upcoming Events
  6. If
  7. Choose from List
  8. If
  9. Choose from Menu
  10. Choose from Menu
    No events tomorrow!
  11. Nothing

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/calendar'
#define color orange
#define glyph bed

/*
This shortcut returns results from your calendars that occur 'Tomorrow'.
As it is meant to be used as part of iOS 14's Wind Down feature, 'tomorrow' means the next day. For example, it will return the same results if you access it at 10pm at night or at 2am in the morning.
It is set to 'All Calendars' and 10 events. If you normally have more events increase the amount. If you want to only return results from certain calendars add a filter events action after the 'Get 10 events' action. Then change the magic variables in the two scripting actions to THAT result variable.

Created by Jonathan Reed
www.smallbites.me
@aylwardreed

Visit smallbites.me/creating-ios14-wind-down-shortcuts/
*/
currentDate()
adjustDate(, "Add")
adjustDate(, "Get Start of Day")
rawAction("is.workflow.actions.getupcomingevents", {
	"WFDateSpecifier": "Specified Day",
	"WFGetUpcomingItemCount": 10,
	"WFSpecifiedDate": "{}"
})

if UpcomingEvents {
	chooseFromList(UpcomingEvents, "Here's what's happening tomorrow")
} else {
	menu nil {
	item "No events tomorrow!":
	}
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by aylwardreed

See All

You Might Also Like

See All
Advertisement