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

标签 ios macos

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

相关文章:

ios - FaSTLane 健身房失败退出状态 : 1 although Archive Succeeded

ios - native 从 UIImage 扫描条形码(即不使用 ZBar)

html - 让 OSX Safari 支持 css "white-space: pre"

ios - Twitter 的 NSXmlParserError

ios - 永远不知道要使用哪个个人资料组合进行签名

ios - 未调用 UITableView 委托(delegate)方法。从另一个类创建

iphone - 我可以摆脱 iPhone 键盘的最后一行或更改某些键的功能吗?

macos - 在 Mac 上访问 Docker 转发端口

objective-c - 如何在 Cocoa 中从 MP3 文件中提取 ID 标签?

macos - 如何让 NSCollectionView 项目具有基于文本字段的动态高度