You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Name: Log Past X Minutes to Calendar// Description: Asks for duration in minutes, event title, and (on first use) calendar name// Author: Pavel 'Strajk' Dolecek <www.strajk.me>// Twitter: @straaajk// me.strajk:status SHAREDconstminutes=awaitarg("Enter the duration (in minutes) to log retroactively")consttitle=awaitarg("Describe the activity you want to log")letcalendar=awaitenv("SCRIPTKIT_LOG_CALENDAR_NAME",{hint: `Enter the exact name of an existing calendar in your Calendar app`,})awaitapplescript(` tell application "Calendar" switch view to week view tell calendar "${calendar}" set theCurrentDate to current date make new event at end with properties {summary:"${title}", start date:theCurrentDate - ${minutes} * minutes, end date:theCurrentDate} end tell end tell`)awaitnotify(`Logged ${minutes} minutes of ${title} to ${calendar}`)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Screenshot-2024-11-11T19.25.36.mp4
Open log-past-x-minutes-to-cal in Script Kit
Beta Was this translation helpful? Give feedback.
All reactions