首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用Applescript获取Bento中的库的名称

使用Applescript获取Bento中的库的名称
EN

Stack Overflow用户
提问于 2011-07-11 07:06:57
回答 1查看 230关注 0票数 0

我正在努力使用Applescript和Bento。最初,我希望获得库的名称,并尝试使用以下脚本:

代码语言:javascript
复制
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

典型的错误消息是:

代码语言:javascript
复制
    get name of library 1 of library 1
    --> error number -1728 from «class GLib» 1 of «class GLib» 1

有没有人能指引我开始使用Applescript和Bento的正确方向?

EN

回答 1

Stack Overflow用户

发布于 2011-07-11 07:35:45

事实证明这是我在使用Applescript时的错误:

代码语言:javascript
复制
tell application "Bento"
repeat with i from 1 to count of libraries
    set theName to name of library i
    log theName
end repeat
end tell
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6644334

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档