列出OS X中最前面的Chrome窗口的选项卡的URL

如果您只是更改应用程序名称,这也适用于Safari。替换 window 1 与 windows 列出的所有窗口,而不是只有最前面的窗口标签页的URL。这还包括标题:osascript -e{'set o to""','tell app"google chrome"','repeat with t in tabs of window 1','set o to o&url of t&"\n"&" "&title of t&"\n"',end,end}|sed \$d .
.

0

linux命令:osascript -e{'set text item delimiters to linefeed','tell app"google chrome"to url of tabs of window 1 as text'} text'} as 1 window of tabs of url chrome"to app"google linefeed','tell to delimiters item text -e{'set osascript osascript -e{'set text item delimiters to linefeed','tell app"google chrome"to url of tabs of window 1 as text'}rootopen.com
linux命令:osascript -e{'set text item delimiters to linefeed','tell app"google chrome"to url of tabs of window 1 as text'} text'} as 1 window of tabs of url chrome"to app"google linefeed','tell to delimiters item text -e{'set osascript osascript -e{'set text item delimiters to linefeed','tell app"google chrome"to url of tabs of window 1 as text'}rootopen.com
evwa 2019-02-12 21:18:43
输出

评论

相关推荐
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

热门文章