applescripts打开Chrome中书签文件夹中的所有网站

q8l4jmvw  于 2023-11-14  发布在  Go
关注(0)|答案(1)|浏览(97)

尝试使用applescripts在新的Chrome窗口中打开书签文件夹的所有站点。
这是我目前所知道的

tell application "Google Chrome"
    make new (window)
    activate "bookmark bar"
    open bookmark folder "Start My Day" of bookmark folder "My Day" of "bookmark bar"
end tell

字符串

lztngnrs

lztngnrs1#

好的开始...

tell application "Google Chrome"
    if not (exists window 1) then reopen
    set myBMFolder to bookmark folder "Start My Day" of bookmark folder "My Day" of bookmark folder "Bookmarks Bar"
    set bmURLs to URL of bookmark items of myBMFolder
    repeat with aUrl in bmURLs
        open location aUrl
    end repeat
end tell

字符串

相关问题