gpt4 book ai didi

ios - 以编程方式访问 Apple Notes 内容

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:11:25 26 4
gpt4 key购买 nike

是否可以通过编程方式访问 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com