Save Session to Google/Outlook Calendar with Apple Shortcut

Philip Young

Introduction

Session has a calendar integration feature, where every Session that made is saved to Apple Calendar.

This feature is great—but it would be nice to have more control.

You can save Sessions to a custom calendar per category with Apple Shortcuts.

Example use case:

  • if you have a meeting, you may want to save it to your personal calendar, and
  • if you have a work meeting, you may want to save it to your work calendar.

You can achieve this with Apple Shortcuts integration.

1. Enable stop_working Integration

  1. Go to Session > Preferences > Shortcuts.
  2. Enable Stop working shortcuts.

Enable Session Start Shortcut

2. Create stop_working Shortcut

  1. Go to Apple Shortcuts app.
  2. Press + button to create a new shortcut.
  3. Set the Shortcut title to stop_working.

Set Shortcut title to Session Start

3. Map each category to a calendar

  1. You can get Session data from Shortcut Input Data.
  2. From Shortcut Input, you can get Session:
  • title,
  • category,
  • notes,
  • start date, and
  • end date

…which we will use to create calendar event. 3. Get the category with category.title from Shortcut input dictionary.

Shortcut Dictionary

  1. On each category.title, do Add New Event Shortcut to create calendar event.
  2. Note: Add New Event needs to have a title. Empty title will not create the calendar event.

Apple Shortcuts Calendar

We made a code example below so you can easily make your own calendar integration.

📆
Apple Shortcut Calendar Example

4. Also enable this on session_end integration

Pro tip: You can run shortcut within shortcut. In this case, we can run our stop_working shortcut within session_end shortcut.

Run Shortcut within Shortcut

© Copyright 2020-2024 Translucent LLC