是否可以通过编程方式访问 Apple Notes(即 macos 和 ios 中预装的应用程序)内容
最佳答案
macOS 上的备忘录可使用 AppleScript 编写脚本
要注销所有笔记,请打开脚本编辑器并使用以下内容创建一个新脚本,然后点击播放按钮:
tell application "Notes"
repeat with theNote in notes
set theNoteName to name of theNote
log theNoteName
set theNoteBody to body of theNote
log theNoteBody
log "----"
end repeat
end tell
或者,创建一个包含上述内容的文本文件并将其保存为 notes.scpt
,然后从终端运行:
osascript notes.scpt
关于ios - 以编程方式访问 Apple Notes 内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43704434/