SkillsGrove
SkillsGrove/Produktivität/Stellven/AI4Research/office-notes

office-notes

Installation

$npx skills add https://github.com/Stellven/AI4Research --skill office-notes
$git clone --depth 1 https://github.com/Stellven/AI4Research.git /tmp/AI4Research && mkdir -p ~/.claude/skills && cp -r /tmp/AI4Research/skills/office-notes ~/.claude/skills/office-notes
Bitte installiere diesen Agent Skill für mich: https://github.com/Stellven/AI4Research/tree/b0bf165f9ab073aae23e45b3b2796973e5677eea/skills/office-notes – lies zuerst seine SKILL.md und seine Skripte und installiere ihn erst dann in meinen Skills-Ordner, wenn du bestätigt hast, dass er sicher ist.

Zusammenfassung

Originalbeschreibung · MIT管理 Apple Notes - 创建、搜索、列出笔记 (macOS)
Die folgende SKILL.md ist aus Stellven/AI4Research (Commit b0bf165) unter der Lizenz MIT wiedergegeben. Der Text ist unverändert; lediglich die Metadaten im Dateikopf sind weggelassen, Bilder werden als Links angezeigt und sehr lange Dateien werden gekürzt. Copyright 2026 Sihao Li. Lizenz: LICENSE. Es wird nur die Anleitungsdatei angezeigt; etwaige Skripte finden Sie im Original-Repository.

Apple Notes 管理

通过 AppleScript 管理 Apple Notes (macOS)。

前提条件

  • macOS
  • 授予终端 Automation 权限 (系统设置 → 隐私与安全 → 自动化)

操作

列出笔记文件夹

osascript -e 'tell application "Notes" to get name of every folder'

列出笔记 (默认文件夹)

osascript -e 'tell application "Notes" to get name of every note in folder "Notes"'

搜索笔记

osascript -e 'tell application "Notes"
  set matchingNotes to every note whose name contains "关键词"
  repeat with n in matchingNotes
    log (name of n) & " | " & (id of n)
  end repeat
end tell'

创建笔记

osascript -e 'tell application "Notes"
  make new note at folder "Notes" with properties {name:"标题", body:"内容"}
end tell'

读取笔记内容

osascript -e 'tell application "Notes"
  set theNote to first note whose name is "笔记标题"
  get body of theNote
end tell'

追加内容到笔记

osascript -e 'tell application "Notes"
  set theNote to first note whose name is "笔记标题"
  set body of theNote to (body of theNote) & "<br>追加内容"
end tell'

注意事项

  • 笔记内容使用 HTML 格式
  • 换行使用 <br>
  • 操作需要 Notes 应用在后台运行
  • 首次使用会弹出权限请求
Vollständigen Lizenztext ansehen (MIT)
MIT License

Copyright (c) 2026 Sihao Li

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.