🔄 卡若AI 同步 2026-03-03 05:02 | 更新:水桥平台对接、运营中枢工作台 | 排除 >20MB: 14 个

This commit is contained in:
2026-03-03 05:02:42 +08:00
parent 9df12792ce
commit 64a81a4b3b
3 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
-- 删除「今天 + 未来一段时间」内每天重复的日历项,每天只保留每类第一条
-- 执行osascript "本文件路径"
-- 修改 futureDays 可调范围60=约1分钟90=默认365=全年约35分钟
set futureDays to 90
set baseDay to (current date)
set hours of baseDay to 0
set minutes of baseDay to 0
set seconds of baseDay to 0
set totalDeleted to 0
tell application "Calendar"
set allCals to (every calendar whose writable is true)
if (count of allCals) is 0 then set allCals to calendars
repeat with dayOffset from 0 to futureDays
set targetDay to baseDay + (dayOffset * 86400)
set dayEnd to targetDay + 86400
repeat with cal in allCals
try
set dayEvents to (every event of cal where start date targetDay and start date < dayEnd)
set seen to {}
set toDelete to {}
repeat with ev in dayEvents
try
set k to (summary of ev) & "|" & ((start date of ev) as text)
if seen contains k then
set end of toDelete to ev
else
set end of seen to k
end if
end try
end repeat
repeat with ev in toDelete
try
delete ev
set totalDeleted to totalDeleted + 1
end try
end repeat
end try
end repeat
end repeat
end tell
return "今日及未来" & (futureDays as text) & "天重复项已清理,共删除 " & (totalDeleted as text) & " 条"

View File

@@ -211,3 +211,4 @@
| 2026-03-02 17:10:43 | 🔄 卡若AI 同步 2026-03-02 17:10 | 更新:金仓、运营中枢工作台 | 排除 >20MB: 14 个 |
| 2026-03-02 20:52:08 | 🔄 卡若AI 同步 2026-03-02 20:52 | 更新:金盾、卡木、总索引与入口、运营中枢工作台 | 排除 >20MB: 14 个 |
| 2026-03-03 04:51:53 | 🔄 卡若AI 同步 2026-03-03 04:51 | 更新:金盾、运营中枢工作台 | 排除 >20MB: 14 个 |
| 2026-03-03 04:58:10 | 🔄 卡若AI 同步 2026-03-03 04:58 | 更新Cursor规则、总索引与入口、运营中枢工作台 | 排除 >20MB: 14 个 |

View File

@@ -214,3 +214,4 @@
| 2026-03-02 17:10:43 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-02 17:10 | 更新:金仓、运营中枢工作台 | 排除 >20MB: 14 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
| 2026-03-02 20:52:08 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-02 20:52 | 更新:金盾、卡木、总索引与入口、运营中枢工作台 | 排除 >20MB: 14 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
| 2026-03-03 04:51:53 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-03 04:51 | 更新:金盾、运营中枢工作台 | 排除 >20MB: 14 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |
| 2026-03-03 04:58:10 | 成功 | 成功 | 🔄 卡若AI 同步 2026-03-03 04:58 | 更新Cursor规则、总索引与入口、运营中枢工作台 | 排除 >20MB: 14 个 | [仓库](http://open.quwanzhi.com:3000/fnvtk/karuo-ai) [百科](http://open.quwanzhi.com:3000/fnvtk/karuo-ai/wiki) |