我有一个在/tmp目录中创建几个文件的脚本
#!/bin/bash
touch /tmp/file1.txt
touch /tmp/file2.txt
Run Code Online (Sandbox Code Playgroud)
如何让脚本/tmp/在 Finder 中打开带有两个文件的目录file1.txt并file2.txt选中?
我知道我可以打开文件夹:
open /tmp/
Run Code Online (Sandbox Code Playgroud)
但它(显然)没有选择这两个文件。