Answers:
只能添加文本,并创建新笔记。
Apple脚本:
on run {input, parameters}
tell application "System Events"
tell process "Notes"
click menu item "New Note" of menu "File" of menu bar 1
click menu item "Paste" of menu "Edit" of menu bar 1
end tell
end tell
return input
end run
更新* 2:
要添加图片,只需使用另一个单击菜单项的Apple Script块。并为Notes应用程序添加一些延迟启动。
on run {input, parameters}
tell application "System Events"
tell process "Google Chrome"
click menu item "Copy" of menu "Edit" of menu bar 1
end tell
end tell
return input
end run