check-calendar-today
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkill: check-calendar-today
Skill: check-calendar-today
Overview
概述
This skill queries the native macOS Calendar application to fetch all events occurring on the current date and displays them in a readable format.
此技能会查询macOS原生Calendar应用,获取当前日期的所有事件,并以易读格式显示。
When to Use
使用场景
Use this skill when the user asks to:
- Check their calendar for today
- See what's on their schedule
- View today's appointments or events
- Find out if they have any meetings scheduled
- Get a summary of today's calendar
当用户提出以下请求时使用此技能:
- 查看今日日历
- 查看日程安排
- 查看今日的约会或事件
- 查询是否有安排好的会议
- 获取今日日历的摘要
Procedure
操作步骤
- Execute the AppleScript command to query the Calendar application for the current date
- The script retrieves the start and end of the current day (midnight to 11:59 PM)
- Iterate through all calendars and collect events that fall within today's time range
- Format each event with its summary, start time, and end time
- Return the formatted event list or a message indicating no events are scheduled
- Display the results to the user in a clear, readable format
- 执行AppleScript命令,向Calendar应用查询当前日期
- 脚本获取当日的开始和结束时间(午夜至晚上11:59)
- 遍历所有日历,收集属于今日时间范围内的事件
- 为每个事件格式化其标题、开始时间和结束时间
- 返回格式化后的事件列表,或显示无日程安排的提示信息
- 以清晰易读的格式向用户展示结果
Output
输出结果
A text summary listing all calendar events for today with their titles, start times, and end times. If no events are scheduled, returns a message indicating an empty calendar.
列出今日所有日历事件的文本摘要,包含事件标题、开始时间和结束时间。如果没有安排任何事件,则返回日历为空的提示信息。
Reference Commands
参考命令
Commands for executing this skill (adapt to actual inputs):
bash
osascript -e 'tell application "Calendar" to set today to current date...'Replace values with actual credentials from the key store.
{{PLACEHOLDER}}执行此技能的命令(根据实际输入调整):
bash
osascript -e 'tell application "Calendar" to set today to current date...'将值替换为密钥存储中的实际凭据。
{{PLACEHOLDER}}Example
示例
Example requests that trigger this skill:
what is on my calendar for today?触发此技能的示例请求:
今天我的日历上有什么安排?Notes
注意事项
- This skill requires access to the native macOS Calendar application
- The script automatically uses the current system date and time
- All calendars in the Calendar app are queried, not just the primary calendar
- 此技能需要访问macOS原生Calendar应用
- 脚本会自动使用当前系统日期和时间
- 会查询Calendar应用中的所有日历,而不仅仅是主日历
Keywords
关键词
calendar, events, schedule, appointments, today, agenda, meetings
日历、事件、日程、约会、今日、议程、会议