shortcuts run "Translate File" -i "~/test.txt" -o "~/test-t.txt"
Error: The file “test.txt” couldn’t be opened because there is no such file.
# 只能写成以下形式，但是找不到它 `-o` 输出的文件
shortcuts run "Translate File" -i $HOME/test.txt
shortcuts run "Translate File" -i "$HOME/test.txt"
shortcuts run "Translate File" -i "test.txt" -o "test-t.txt"
make-temp-file is a byte-compiled Lisp function in ‘files.el’.
(make-temp-file PREFIX &optional DIR-FLAG SUFFIX TEXT)
Create a temporary file.
The returned file name (created by appending some random characters at the end
of PREFIX, and expanding against ‘temporary-file-directory’ if necessary),
is guaranteed to point to a newly created file.
You can then use ‘write-region’ to write new data into the file.
If DIR-FLAG is non-nil, create a new empty directory instead of a file.
If SUFFIX is non-nil, add that at the end of the file name.
If TEXT is a string, insert it into the new file; DIR-FLAG should be nil.
Otherwise the file will be empty.
Other relevant functions are documented in the file group.
Probably introduced at or before Emacs version 21.1.