👉 No third-party tools required.
Result: each time a bsport booking email arrives, a calendar event is automatically created in your chosen iCloud calendar.
🧩 Prerequisites
Before getting started, make sure that:
You’re using Apple Mail on Mac (Ventura / Sonoma / Sequoia).
You receive your bsport booking confirmation emails in that Mail app.
You’re signed in to iCloud so your Calendar syncs with your iPhone/iPad.
🪄 Step 1 — Create the Script File
Create a plain text file named
bsport_to_calendar_mail_rule.applescript
and paste in the script provided in the appendix (or download it if available).
📂 Step 2 — Move It to the Right Folder
Open Finder → Go → Go to Folder…
Paste this path and press Return:
~/Library/Application Scripts/com.apple.mail
Drag and drop the script file into that folder.
⚙️ Step 3 — Create the Mail Rule
Open Apple Mail → Settings → Rules → Add Rule
Description:
Auto-add bsport bookings
If ANY of the following conditions are true:
From contains
bsport
OR Subject contains
booking
Perform the following action:
Run AppleScript → select the script you just added.
(Optional) Add another action “Move Message” to a Bookings mailbox to keep things tidy.
Click OK → Apply.
🔐 Step 4 — Allow Permissions
The first time the script runs, macOS will ask for permission to let Mail control Calendar and run scripts.
Click Allow.
You can later change the target calendar or the default event duration (see below).
✅ Step 5 — Test It
Open any bsport booking email.
In the Mail menu, choose Message → Apply Rules.
Open your Calendar: you should see a new event titled
Shropshire Floats – [email subject]
🎉
🧠 Notes & Customizations
Change the calendar name:
Edit the lineproperty targetCalendarName : "Home"
to match your iCloud calendar name (e.g.
"Bsport Studio"
).Change the event duration:
Editproperty defaultDurationMinutes : 60
to set a different duration (e.g. 90 for a 90-minute session).
Date detection:
The script captures the first date/time found in the email.
If your template contains multiple dates, place the appointment line at the top of the email.Important:
This is a one-way sync (bsport → Calendar).
If a booking is changed or cancelled in bsport, remember to manually update your calendar event.