V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Livid
V2EX  ›  Python

一个整理 macOS 桌面的 Python 脚本

  •  
  •   Livid · 2019-08-09 16:10:39 +08:00 · 3053 次点击
    这是一个创建于 1694 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://github.com/livid/mover

    之前做的一个小工具,每次运行时的效果是:如果 ~/Desktop 上的 7 天没有读取过的文件,就会被移动到 ~/Documents/Drawer/YYYYMM,比如现在是 201908。

    Drawer 就是抽屉的意思,把 Desktop 上不用的文件移动到 Drawer。
    8 条回复    2019-08-12 08:04:48 +08:00
    littlewing
        1
    littlewing  
       2019-08-09 16:58:44 +08:00   ❤️ 1
    不在 desktop 放任何文件
    xiaket
        2
    xiaket  
       2019-08-09 17:01:40 +08:00
    基本不用 Desktop 文件夹, 命令行下都隐藏了...
    mabutou
        3
    mabutou  
       2019-08-09 18:01:02 +08:00   ❤️ 1
    Hazel 就是专门干这类事情的,可以设置各种触发条件。https://www.noodlesoft.com/
    codermagefox
        4
    codermagefox  
       2019-08-09 18:36:21 +08:00 via Android
    可以,很棒.....能设置筛选条件吗?
    Livid
        5
    Livid  
    MOD
    OP
       2019-08-09 18:37:00 +08:00
    @codermagefox 比如只移动图片或者只移动非图片?
    Livid
        6
    Livid  
    MOD
    OP
       2019-08-09 18:38:30 +08:00
    也希望能够在这里收集一些需求,如果真的有人也想用的话,那么后续我会更新的。
    codermagefox
        7
    codermagefox  
       2019-08-09 18:43:45 +08:00 via Android
    @Livid 有很多项目,以一个固定的玩意儿开头,比如 shop-xxx-xxx,还有移动图片这种适配.xxx 的,可以做一个 prefix 和 after 的选项吗...
    Seymer
        8
    Seymer  
       2019-08-12 08:04:48 +08:00
    @codermagefox 我目前在用一个叫 Spotless 的小软件,分享给你。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2901 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 13:58 · PVG 21:58 · LAX 06:58 · JFK 09:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.