Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

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.

About

Instruction how to use Quick Look as application (on macos).

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors