Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想知道如何制作一个将打开网页的源代码复制到剪贴板的 AppleScript
或者
我可以制作一个在网页上搜索指定类并复制它的脚本吗?
好吧,在 AppleScript 中从网页获取 HTML 并复制到剪贴板是相当简单的。
set theHTML to do shell script "curl -L http://twitter.com | pbcopy"