Benches macOS

5

Add Quick Look preview for Automator Appl…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I made a simple application in Automator that opens the selected text file in vim in a terminal window (just a few lines of AppleScript). I used and loved this for quite some time and the only thing I don't like and that is that changing the default application for a filetype to the script results in Finder not being able to show a preview (if viewed as columns or when space is pressed).

Is there any possibility to integrate a simple Quick Look preview for ASCII-files with a simple Automator script or is the only possibility to build a full App via Xcode?

5 replies

Sign in or join Beachball Help to reply.

  1. 0

    VikingOSX

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    On my High Sierra (10.13.6) and Mojave (10.14.3) systems, Quick Look just shows me the source content of my .tex files. The default Open with application at the top of that Quick Look window is MacVim.

    No Automator. No other configuration. MacVim will pop open a window based on my ~/.gvimrc settings and all is good. I have the full MacTeX 2018 installation.

  2. 0

    michipod

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thank you for your suggestion using MacVim which would work! Unfortunately I need to open vim in a real Terminal ;)

    However I found this project called QLColorCode which solved my problem

  3. 0

    VikingOSX

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    It would be even nicer if the QLColorCode offered a theme matching the one used in vim.

  4. 0

    michipod

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    That is true. The themes are a bit limited, but I guess you have seen the paragraph "Setting the color style" in the README so at least you can have 10 different themes...

  5. 0

    VikingOSX

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Too bad the author didn't take advantage of TextMate themes.