【发布时间】:2017-05-19 03:02:03
【问题描述】:
我今天是第一次试用 AppleScript。
想先在我的 Notes.app 中记录每条笔记的名称
这是我的脚本:
tell application "Notes"
activate
set mainAccount to the name of account 1
tell account mainAccount
repeat with n in notes
log name of n as string
end repeat
end tell
end tell
我收到一条错误消息:
tell application "Notes"
activate
get name of account 1
--> "iCloud"
exists folder "Archive" of account "iCloud"
--> true
count every note of account "iCloud"
--> error number -1728 from every note of account "iCloud"
Result:
error "Notes got an error: Can’t get every note of account \"iCloud\"." number -1728 from every note of account "iCloud"
这里发生了什么?
【问题讨论】:
标签: automation applescript ui-automation