macos - 在 Automator 中使用第三方 shell 模块
问题描述
如果我安装了第三方 shell 模块,就说 homebrew,我在 Automator 中有一个运行 shell 脚本块。如果我现在键入一个在终端中可以正常工作的命令,我在 Automator 中应该做什么?比如说我有brew install brightness
,它不会在 Automator 中运行
解决方案
在这种情况下,您必须指定可执行文件的完整路径/usr/local/bin/brew/
。许多(如果不是全部)第三方 shell 实用程序都在目录中/usr/local/bin/
。
推荐阅读
- javascript - 多次运行 IndexOf JS
- flutter - Riverpod:是否有在另一个 StreamProvider 中读取 StreamProvider 的正确方法?
- spring - Spring Batch 测试 - Autowired bean 为空
- r - 在 Ubuntu 上从 CRAN 安装 lme4
- nlp - Stanford-NLP Parser 错误地拆分了我的句子
- javascript - 动画未制作jquery(背景颜色)
- vue.js - Vuejs 跟踪输入字段
- javascript - 使用 Javascript 从 imageUrl 转换为 FileObject(在任何 JS 框架上,主要是 React)
- amazon-web-services - 在 AWS 中自动进行自动缩放
- r - R中ARIMA模型的网格搜索