mac 下的网页标签管理软件?

2017-03-11 22:28:30 +08:00
 diveIntoWork
比如说我要用 chrome 和 safari 切换使用, chrome 上打开了 10 个 tab ,当我用 safari 的时候希望这 10 个 tab 也能在 safari 里打开。
1358 次点击
所在节点    macOS
1 条回复
minamike
2017-03-12 10:59:42 +08:00
applescript
```
(*
Veritrope.com
Open Chrome Tabs in Safari
Version 1.0
April 18, 2011

// TERMS OF USE:
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

// LIKE THIS SCRIPT?
If this AppleScript is helpful to you, please show your support here:
http://veritrope.com/support

// SCRIPT INFORMATION AND UPDATE PAGE
http://veritrope.com/code/open-chrome-tabs-in-safari

// REQUIREMENTS
More details on the script information page.

// CHANGELOG
1.0 Initial Release

*)

(*
======================================
// MAIN PROGRAM
======================================
*)

set list_Tabs to {}

tell application "Google Chrome"
set the_Tabs to (tabs of every window)
repeat with the_Tab in the_Tabs
set the_Items to (every item of the_Tab)
repeat with the_Item in the_Items
copy URL of the_Item to end of list_Tabs
end repeat
end repeat
end tell

tell application "Safari"
repeat with list_Tab in list_Tabs
set myTab to make new tab at end of tabs of window 1
set URL of myTab to list_Tab
end repeat
end tell
```

来自 http://veritrope.com/code/open-chrome-tabs-in-safari/

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/346751

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX