跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • Mac 的自动操作,可以共享一波吗?
未分類
12 3 月 2021

Mac 的自动操作,可以共享一波吗?

Mac 的自动操作,可以共享一波吗?

資深大佬 : doudou1523102 2

最近发现自动操作这个神器,比如复制文件夹的路径,右键创建文件 可以共享一下大家的自动操作吗? #工作效率 #Mac

大佬有話說 (18)

  • 資深大佬 : linwenzhi0528

    蹲一个大佬

  • 資深大佬 : chonger

    惭愧,用 mac 十几年,从来不知道这玩意怎么用。

  • 資深大佬 : kkkkkrua

    on run {input, parameters}
    set randomNumber to (random number from 100 to 270)
    delay randomNumber
    tell application “System Events”
    key code 59
    end tell
    return input
    end run

    do not Lock Screen 远程公司摸鱼的

  • 資深大佬 : arare

    automator 限制还是挺多的,运行速度也不理想
    一般我就用来补充缺失的快捷键操作,提高效率

  • 資深大佬 : oldjerry

    一直知道这功能,也没发现什么特别有用的操作。孩子在家上网课的时候,经常要把老师发的 word 转成 pdf 存到 iPad 上用,在网上抄了个转换的操作,省的每次打开 word 选另存了。

    on run {input, parameters}
    set theOutput to {}
    tell application “Microsoft Word”
    launch
    repeat with thefile in input
    open thefile
    set pdfPath to my makeNewPath(thefile)
    set theActiveDoc to the active document
    save as theActiveDoc file format format PDF file name pdfPath
    close theActiveDoc saving no
    end repeat
    quit
    end tell
    return theOutput
    end run

    on makeNewPath(f)
    set d to f as string
    if d ends with “.docx” then
    return (text 1 thru -5 of d) & “pdf”
    else if d ends with “.doc” then
    return (text 1 thru -4 of d) & “pdf”
    else
    return d & “.pdf”
    end if
    end makeNewPath

  • 資深大佬 : Dvel

    复制文件夹的路径用不着自动操作,Cmd + Option + C 就复制了。

  • 資深大佬 : VpChris

    说不上共享方案 (因为我觉得肯定有比我好的
    给点思路把:
    1. 自动把 PDF 转 JPG (多少页就出多少个 Jpg.
    2. 结合 folder action 把文件夹里面新增的文件设一个提醒 (以记得看 我自己的用法是监控着两个文件夹, 一个自动同步百度云 一个 google drive, 有新文件就在 reminder 里面新增一个 reminder 然后依赖 omnifocus 的 ios 端 capture, 把这些提醒弄进来 omnifocus

    3. 之前还曾经用 automator 来做一个 quit all app (仅保留想保留的) 后来用 alfred 的一个 workflow 代替了
    4. word -> PDF 5 有给这个方案.

  • 資深大佬 : qlqsh

    批量重命名。直接 Finder 里的操作,可以自定义为自己常用的方式。

    显示(/隐藏)所有隐藏文件
    STATUS=`defaults read com.apple.finder AppleShowAllFiles`
    if [ $STATUS == YES ]
    then
    defaults write com.apple.finder AppleShowAllFiles NO
    else
    defaults write com.apple.finder AppleShowAllFiles YES
    fi
    killall Finder

  • 資深大佬 : Elethom

    大部分都是定时运行的,手动触发的就只用了一个快捷键自动点 notification 的回复按钮。其实很多东西用 shell script 更方便。

  • 資深大佬 : Elethom

    @qlqsh
    Command Shift . 就可以显示隐藏文件了。

  • 資深大佬 : qlqsh

    @Elethom 知道。这不是要记快捷键嘛。单独的几个还行。多了真的就记不住了。这可以直接在右键里,比较直观。

  • 資深大佬 : Elethom

    @qlqsh
    Folder Actions 是挺方便啦。

  • 資深大佬 : yitingbai

    @Dvel 学到了, 果然可以

  • 資深大佬 : Emrys365

    批量删除 PowerPoint 当前演示文稿中的备注: https://gist.github.com/Emrys365/f1a6a8567086d4cbdf340e6a8cb173a7

  • 資深大佬 : jimliang

    https://github.com/raycast/script-commands/tree/master/commands

  • 主 資深大佬 : doudou1523102

    @Dvel 是的,但是我有一个粘贴版的工具快捷键冲突了

  • 主 資深大佬 : doudou1523102

    @Dvel 我用文件路径是为了 在 iterm 中粘贴路径,这个比较方便

  • 資深大佬 : strongcoder

    @doudou1523102 #17 终端路径问题用 Go2shell 更方便 你试试

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具