在带有PDF附件的Apple notes中创建新笔记

在带有PDF附件的Apple notes中创建新笔记,pdf,applescript,Pdf,Applescript,我打算用榛子来观察文件夹。 当pdf或任何文件被放入文件夹时,我想在Apple Notes(位于El Capitan)中创建一个便笺,并将该文件作为附件 以下是我到目前为止的有限进展,它是在Hazel规则中作为嵌入式脚本创建的: tell application "Notes" make new note at folder "Notes" end tell 这将创建一个空白注释ok 从研究中,我可以看出我需要在注释文本的正文中创建一个HTML img标记,指向文件夹中的附件,但我不知

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

以下是我到目前为止的有限进展,它是在Hazel规则中作为嵌入式脚本创建的:

tell application "Notes"
   make new note at folder "Notes" 
end tell
这将创建一个空白注释ok

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

类似的内容

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

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