我正在尝试在Notes.app
中自动快速创建新笔记,我想在一个浮动窗口中打开新创建的笔记。
这是我创建便笺的代码:
set RunTime to ((current date)) as string
tell application "Notes"
activate
tell account "iCloud"
make new note at folder "Notes" with properties {name:RunTime}
--does not work
--open document {name:RunTime}
end tell
end tell
有什么想法吗?
以下AppleScript将打开新创建的运行时注释。
尝试一下
tell application "Notes"
tell account "iCloud"
tell folder "Notes" -- you can remove this to show notes from any folder
show note 1 -- notes are indexed by their last edited date
end tell
end tell
end tell