V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
diveIntoWork
V2EX  ›  macOS

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

  •  
  •   diveIntoWork · 2017-03-11 22:28:30 +08:00 · 1354 次点击
    这是一个创建于 2630 天前的主题,其中的信息可能已经有所发展或是发生改变。
    比如说我要用 chrome 和 safari 切换使用, chrome 上打开了 10 个 tab ,当我用 safari 的时候希望这 10 个 tab 也能在 safari 里打开。
    minamike
        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/
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2614 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 15:18 · PVG 23:18 · LAX 08:18 · JFK 11:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.