我尝试使用此代码,但是它删除了注释的标题!如何留下笔记的标题?
tell application "Notes"
tell account "iCloud"
tell folder "Category"
set body of note "Test Post" to "reset the body text"
end tell
end tell
end tell
答案 0 :(得分:0)
注释的名称/标题通常是注释的第一行。
获取便笺的名称,暂时保存,设置正文并重新分配名称
tell application "Notes"
tell account "iCloud"
tell folder "Category"
tell note "Test Post"
set tempName to its name
set body to "reset the body text"
set its name to tempName
end tell
end tell
end tell
end tell