3

从终端的命令行中,是否有任何方法可以在按下空格键时调出 Finder.app 中可以看到的预览文件内容屏幕 - 无需将 Finder.app 带到前台并获得焦点(即,保持 Finder .app 背景)。如果是这样,任何人都可以与我分享将实现该目标的内容applescript(例如, )。osascript

4

1 回答 1

2

来自 AppleScript:

set myFile to "/Users/lawlist/Desktop/test.jpg"
do shell script "qlmanage -p " & quoted form of myFile & ">& /dev/null"
于 2013-11-16T18:09:58.973 回答