我正在努力使用Applescript和Bento。最初,我希望获得库的名称,并尝试使用以下脚本:
tell application "Bento"
repeat with i from 1 to count of libraries
tell library i
try
set theName to name of library i
log theName
end try
end tell
end repeat
end tell典型的错误消息是:
get name of library 1 of library 1
--> error number -1728 from «class GLib» 1 of «class GLib» 1有没有人能指引我开始使用Applescript和Bento的正确方向?
发布于 2011-07-11 07:35:45
事实证明这是我在使用Applescript时的错误:
tell application "Bento"
repeat with i from 1 to count of libraries
set theName to name of library i
log theName
end repeat
end tellhttps://stackoverflow.com/questions/6644334
复制相似问题