applescript - Creating new notes in Apple Notes with a PDF attachment -


i planning use hazel watch folder. when pdf or file dropped folder, want create note in apple notes (on el capitan) file attachment.

here's limited progress far, created embedded script in hazel rule:

tell application "notes"    make new note @ folder "notes"  end tell 

this creates blank note ok.

from research, can see need create html img tag in body of note text pointing attachment in folder, beyond knowledge on how achieve this... welcome :)

something this

tell application "notes"     set mynote make new note @ folder "notes"     make new attachment @ mynote data "mypdf.pdf" end tell 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -