【发布时间】:2021-02-08 21:57:49
【问题描述】:
我正在寻找一种方法来查找网页是否从所有打开的选项卡中打开,如果是,请关注此选项卡。
我试过这段代码,但显然这根本不起作用。
set closeURLs to {"http://www.yahoo.com"}
repeat with theURL in closeURLs
tell application "Safari" to open (every tab of every window whose URL contains (contents of theURL))
end repeat
更新:我找到了:http://protips.maxmasnick.com/applescript-to-find-fastmail-tabs-in-safari
【问题讨论】:
-
PS 我也试过这个:告诉应用程序“Safari”将当前选项卡设置为 URL 包含的选项卡(“yahoo.com" 的内容”)结束告诉
-
我发现它http://protips.maxmasnick.com/applescript-to-find-fastmail-tabs-in-safari
-
该示例中的方法非常麻烦且没有必要。
标签: tabs safari applescript