Instruction how to use Quick Look as application (on macos). But there are a lot of other ways to open files with Quick Look (see Usage)
- Open Automator
- Click
New Document
button - Choose
Application
- Find
Run AppleScript
- Paste the following script in the code space
on run {input, parameters}
if input is {} then
set inputFile1 to ¬
quoted form of POSIX path of ¬
(choose file with prompt "Please select a file to process:")
else
set inputFile1 to quoted form of ¬
(POSIX path of first item of input)
end if
tell application "Terminal"
if not (exists window 1) then reopen
activate
do script "qlmanage -p" & space & inputFile1 in window 1
end tell
end run
- Press
command + S
button to save the application. - Use this guide to open applications with your newly created application by default.