【发布时间】:2021-08-07 18:30:20
【问题描述】:
基本上,我发现自己经常做这个“工作流程”并且很想自动化:
- 在特定文件夹中使用新名称创建文件夹(路径不变)
- 在该文件夹中创建一个 index.html 文件
- 使用 2 个关键变量(一个网页标题和一个 https: 链接)编辑 index.html
- 运行脚本
这是我在 Automator 中取得的进展:
- 询问新文件夹名称
- 另存为变量
- 询问网站标题名称
- 另存为变量
- 求链接
- 另存为变量
- 运行 shell 脚本 cd 到正确的文件夹和“touch index.html”
现在我被困住了。在使用提到的其他两个变量时,我将如何编辑 index.html。有没有办法在使用 Automator 变量时编辑或“替换”文件的内容?
TIA!
【问题讨论】:
标签: html bash macos shell automator