【发布时间】:2021-09-22 12:19:18
【问题描述】:
我想使用 Applescript 获取当前可见的 Apple Note(使用 Mac 上的“notes”应用程序)的 ID(或名称)(不是浮动的不是,只是“选定的”注释)或 JXA。这可能吗?
我知道如何使用 Applescript 获取最近保存的笔记的 id:
tell application "Notes"
get id of note 0 //side note: I think saying "note 1" also gives same result--not sure of difference
end tell
但是当你正在查看一个便笺时(所以该便笺在前台窗口中),但它不是最后一个保存的便笺,该怎么办?有没有办法获取该笔记的 id?
【问题讨论】:
标签: macos applescript javascript-automation