MAC 板


LINE

看板 MAC  RSS
※ 引述《bluewild (bluewild)》之铭言: : 像我买了2T的空间 : 但是把照片都放上去大概就占了600G : 我的Mac硬碟大概占了一半 : 工作档案大概又占一半 : 总之,硬碟空间快不够了 : 但其实云上还有超多空间 : 我的想法是 : 在Mac上将没用到的档案设定成不预载 : 就是放出硬碟空间了 : 要用再下载即可 : 问题来了 : MacOS 版的iCloud drive 没有这个功能 : 我查过很多网路上的资讯 : 都是叫我删垃圾桶或浏览器暂存 : 或是不要同步桌面或照片之类的 : 但我的问题不是那些 : 我是想要可以设定档案不预载 : 那麽各位大大有没有这方面的经验呢? : 求解~感谢 找到好方法与各位分享 https://www.macobserver.com/tips/how-to/manual-icloud-sync/ 自己的文章自己回~~ 前情提要 在MacOS中的iCloud Drive 只能对档案决定是否「下载」 却不能任意「卸载」 要卸载要看系统心情,容量大,就装得多 但是有时候硬碟容量就不够 它就只留区区的几G,实在很伤脑筋 有人在网路上开发了这个工具 「iCloud Control」 可以「卸载」档案、或资料夹 也可以针对档案下载 也可以针对「档案」直接进行分享 会直接产生一个iCloud Drive 的分享路径 任何人只要有路径,都可以下载副本 不管是哪个功能 都超级方便 https://i.imgur.com/xWtJZOp.jpg 文章里头提到Git hub 的路径是 https://github.com/Obbut/iCloud-Control/releases 里面有全部的原始档 如果熟悉Git 并且会使用Xcode的话 可以下载後,自行检查程式码 若没问题再行安装 如果不熟悉Xcode以及封装流程 可以直接下载路径上的App安装 安装完後,在系统设定上,打勾「延伸功能」即可使用 https://i.imgur.com/nfDXzjY.jpg 敝人试用心得 释放了百G的空间 超爽的 从今以後 我的硬碟将完整使用2T的iCloud Drive云端空间 想下载什麽就下载什麽 想卸载什麽就卸载什麽 而不再像以前那样塞爆我的硬碟 与各位分享~~ --



※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 210.59.168.61
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/MAC/M.1545790667.A.EBC.html
1F:推 FAT32: 推推!12/26 10:32
2F:推 Gauss: 推12/26 11:09
3F:推 mtcoat: 不知道稳定性高不高 最怕档案莫名不见就惨了12/26 12:11
大大您的顾虑是对的 所以我在安装的之前有特别去看了一下原始码 它的程式码很简短 我贴在文下您可以看看 一般来说我们都会担心程式进行增删的动作 万一没写好,就会出包 但这程式我看到他是用File Manager的套件 这是苹果自家的套件 是用这个套件内的指令 相对来说应该是安全得多 也就是说 程式是用回圈去告知苹果系统,请将这档案卸载 而不是程式自己去砍 当然 这样的写法虽然颇为合理 却不是代表我帮作者背书唷 大家有兴趣可以看看程式码 就能了解 敝人只是自己是这方面苦主,找到良方之後希望共享之 其中是否安全或稳定 只能说目前我用起来还OK 大家自行判断,感谢^^ 以下是整个程式 非常简短 // // FinderSync.swift // iCloudExtension // // Created by Robbert Brandsma on 30-06-16. // Copyright ꤠ2016 Robbert Brandsma. All rights reserved. // import Cocoa import FinderSync class FinderSync: FIFinderSync { let fm = FileManager.default // MARK: - Menu and toolbar item support override var toolbarItemName: String { return "iCloud Control" } override var toolbarItemToolTip: String { return "Manually manage iCloud storage" } override var toolbarItemImage: NSImage { return NSImage(named: "CloudToolbarIcon")! } override func menu(for menuKind: FIMenuKind) -> NSMenu { NSLog("menu(for:)") let menu = NSMenu(title: "") menu.addItem(withTitle: "Remove selected item locally", action: #selec tor(removeLocal(_:)), keyEquivalent: "") menu.addItem(withTitle: "Download selected item", action: #selector(do wnloadItem(_:)), keyEquivalent: "") menu.addItem(withTitle: "Publish public link", action: #selector(publi sh(_:)), keyEquivalent: "") return menu } @IBAction func removeLocal(_ sender: AnyObject?) { NSLog("removeLocal") for target in currentTargets { NSLog("Local removal of \(target) requested") do { try fm.evictUbiquitousItem(at: target) NSLog("Removal of \(target) succeeded") } catch { NSLog("Removal of \(target) failed with error \(error)") } } } @IBAction func publish(_ sender: AnyObject?) { var urls = [URL]() for target in currentTargets { NSLog("Publishing \(target) requested") do { let url = try fm.url(forPublishingUbiquitousItemAt: target, ex piration: nil) NSLog("Publishing \(target) succeeded, url: \(url)") urls.append(url) } catch { NSLog("Publishing \(target) failed with error \(error)") } } let pb = NSPasteboard.general() pb.clearContents() pb.writeObjects(urls as [NSPasteboardWriting]) } @IBAction func downloadItem(_ sender: AnyObject?) { NSLog("Download requested") for target in currentTargets { NSLog("Download of \(target) requested") do { try fm.startDownloadingUbiquitousItem(at: target) NSLog("Download of \(target) succeeded") } catch { NSLog("Download of \(target) failed with error \(error)") } } } var currentTargets: [URL] { var targets = FIFinderSyncController.default().selectedItemURLs() ?? [ ] if let targetedUrl = FIFinderSyncController.default().targetedURL(), t argets.count == 0 { targets.append(targetedUrl) } return targets } } ※ 编辑: bluewild (210.59.168.61), 12/26/2018 13:42:29
4F:推 concord: 推 所以技术上可以弄个 tool 反覆对特定folder卸载 12/26 16:38
5F:→ concord: 这样就有机会达成选择才下载的巨大分享目录.. 12/26 16:39
6F:→ bluewild: 是这样没错~我是没改啦~就原封不动用XD 12/26 17:00
7F:推 idletime: 推推~~~ 12/26 18:18
8F:→ otakuxavier: 太神啦! 12/27 07:27
9F:推 shiou0909: 2TB使用者浮出水面表达感激涕零 12/28 02:32
10F:嘘 daniel35: 10.13.6,按照步骤安装後,工具列没有icon,自订里面也 12/28 10:01
11F:→ daniel35: 没有相关选项QQ 12/28 10:01
12F:推 IstandTIPTOE: 实用推 12/28 14:51
13F:→ concord: 装完记得 killall Finder 12/28 20:03
14F:推 checkfu: 虽然没用到该需求,帮推 12/30 11:50
15F:推 tomap41017: 推 06/11 20:25







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:iOS站内搜寻

TOP