【问题标题】:Creating new notes in Apple Notes with a PDF attachment在 Apple Notes 中创建带有 PDF 附件的新笔记
【发布时间】:2017-02-25 06:27:49
【问题描述】:

我打算使用 Hazel 来观看文件夹。 当将 pdf 或任何文件放入文件夹时,我想在 Apple Notes(在 El Capitan 上)中创建一个便笺,并将该文件作为附件。

这是我迄今为止的有限进展,在 Hazel 规则中创建为嵌入脚本:

tell application "Notes"
   make new note at folder "Notes" 
end tell

这会创建一个空白便笺。

从研究中,我可以看到我需要在注释文本的正文中创建一个 HTML img 标签,指向文件夹中的附件,但我不知道如何实现这一点......欢迎任何帮助: )

【问题讨论】:

    标签: pdf applescript


    【解决方案1】:

    类似的东西

    tell application "Notes"
        set mynote to make new note at folder "Notes"
        make new attachment at mynote with data "mypdf.pdf"
    end tell
    

    【讨论】:

      猜你喜欢
      • 2023-04-04
      • 2021-02-04
      • 2015-08-21
      • 2014-06-14
      • 2017-03-16
      • 2020-04-26
      • 2021-08-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多