从终端中的命令行有没有方法可以在按空格键时,在finder.app中调出可以在finder.app中看到的预览文件内容屏幕 - 而不使用焦点将finder.app带到前景(即,保持Finder.App背面)。如果是这样,请谁可以与我分享一个applescript(例如,osascript)的目录,这将完成该目标。

有帮助吗?

解决方案

来自Applescript:

set myFile to "/Users/lawlist/Desktop/test.jpg"
do shell script "qlmanage -p " & quoted form of myFile & ">& /dev/null"
.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top