能够将macOS Notes.app中的所有Notes导出为PDF。
执行错误:注释出现错误:AppleEvent处理程序失败。 (-10000)
多个脚本,以下是最新的脚本。
tell application "Notes"
activate
repeat with theFolder in every folder
repeat with theNote in every note of theFolder
tell application "System Events"
tell process "Notes"
set dockPrefs to dock preferences
set appearancePrefs to appearance preferences
delay 1
display dialog "Foo"
tell menu bar 1 of process "Notes"
click menu bar item "File"
click menu item "Export as PDF..." of menu "File" of menu bar of process "Notes"
end tell
click button "Save" of sheet 1 of window "Notes" of process "Notes"
delay 1
key code 125
end tell
end tell
end repeat
end repeat
end tell
执行错误:注释出现错误:AppleEvent处理程序失败。 (-10000)