开发者

Getting the names of the libraries in Bento using Applescript

开发者 https://www.devze.com 2023-03-19 10:36 出处:网络
I\'m struggling to get going using Applescript and Bento. Initially I\'d like to get the names of the libraries and I\'m trying to using the following script:

I'm struggling to get going using Applescript and Bento. Initially I'd like to get the names of the libraries and I'm trying to using the following script:

tell application "Bento"
repeat with i from 开发者_StackOverflow1 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

With a typical error message being:

    get name of library 1 of library 1
    --> error number -1728 from «class GLib» 1 of «class GLib» 1

Can anyone guide me in the right direction to get going with Applescript and Bento.


Turns out it was my error in the use of 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 tell
0

精彩评论

暂无评论...
验证码 换一张
取 消