Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 1.07 KB

README.md

File metadata and controls

31 lines (27 loc) · 1.07 KB

quick-look-caller

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)

TD;LR

  1. Open Automator
  2. Click New Document button
  3. Choose Application
  4. Find Run AppleScript
  5. 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
  1. Press command + S button to save the application.
  2. Use this guide to open applications with your newly created application by default.