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

有没有办法把拖进 iBooks 里面的 epub 和 pdf 同步到其他设备呢?

  •  
  •   ivanlw · 2014-11-19 12:32:20 +08:00 · 4727 次点击
    这是一个创建于 3471 天前的主题,其中的信息可能已经有所发展或是发生改变。
    现在只能自动同步store里面购买的图书,这样子想看其他的很不方便……
    已经把Preference->General->Sync bookmarks, highlight, and collections across devices勾上了
    7 条回复    2014-11-22 23:25:50 +08:00
    baozijun
        1
    baozijun  
       2014-11-19 12:36:58 +08:00   ❤️ 1
    多看阅读器,云空间同步
    TheLamb
        2
    TheLamb  
       2014-11-19 12:54:00 +08:00
    ibooks里面买的书貌似有加密吧,你拖出来也没法用,多看阅读买的epub我试过拖出来,没法用的,估计ibooks也是一样,毕竟版权
    ivanlw
        3
    ivanlw  
    OP
       2014-11-19 14:07:27 +08:00
    @TheLamb 不是不是……是把自己的pdf拖进去……
    ivanlw
        4
    ivanlw  
    OP
       2014-11-19 14:09:55 +08:00
    @baozijun 我去试试噢
    ibugeek
        5
    ibugeek  
       2014-11-19 14:36:41 +08:00
    mac上直接拖进去ibooks,然后连接ipad或者iPhone,点书籍同步。
    是这个意思嘛?
    如果想全平台的话,就是多看了。
    xhj
        6
    xhj  
       2014-11-19 18:29:35 +08:00   ❤️ 1
    你也许需要的是这个,把拖进去了的再拖出来?我写了个小脚本:

    #!/usr/bin/env ruby

    require 'nokogiri'

    ibooks_home = '/Users/xxx/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books/'

    Dir.foreach(ibooks_home) do |dir|
    if File.extname(dir) == ".epub"
    dir = ibooks_home + dir
    File.open(dir + "/iTunesMetadata.plist") do |f|
    doc = Nokogiri::XML(f)
    book_name = doc.xpath('//key[text()="itemName"]/following::string').first.text
    Dir.chdir(dir)
    print "." if %x(zip -r "#{book_name}.epub" .) && %x(mv "#{book_name}.epub" ~/Downloads/)
    end
    end
    end

    puts "Done!"
    xuyongli
        7
    xuyongli  
       2014-11-22 23:25:50 +08:00
    itunes同步可以哦,亲测可用。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3509 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 89ms · UTC 04:11 · PVG 12:11 · LAX 21:11 · JFK 00:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.