AppleScript:如何在Apple Notes中自动创建新笔记

问题描述 投票:0回答:3

我正在尝试在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

有什么想法吗?

macos applescript
3个回答
1
投票

以下AppleScript将打开新创建的运行时注释。


0
投票
  1. Notes.app AppleScript套件不像Safari一样支持在新文档中打开笔记。

0
投票

尝试一下

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
© www.soinside.com 2019 - 2024. All rights reserved.