PulseAugur
实时 06:47:53
English(EN) Count the number of Safari tabs

如何使用 AppleScript 计算打开的 Safari 浏览器标签页数量

Simon Willison 分享了一个关于如何使用 AppleScript 计算打开的 Safari 浏览器标签页数量的简短技巧。可以使用命令 `osascript -e 'tell application "Safari" to count tabs of every window'` 来实现。 AI

排序理由 该条目是分享技术技巧的个人博客文章,并非重大行业事件。

在 Simon Willison 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

如何使用 AppleScript 计算打开的 Safari 浏览器标签页数量

报道来源 [1]

  1. Simon Willison TIER_1 English(EN) ·

    Count the number of Safari tabs

    <p>Tiniest TIL, using AppleScript to count the number of open browser tabs in Safari:</p> <pre><code>osascript -e 'tell application "Safari" to count tabs of every window' </code></pre> <p><img alt="I ran it in a terminal window and got back 370." src="https://static.simonwilliso…