←back to thread

700 points yen223 | 1 comments | | HN request time: 0s | source
Show context
vbezhenar ◴[] No.42058069[source]
Few additions.

open -n file.pdf : opens new instance of Preview application which is useful if you want to open the same file twice (for example to look at different pages at once).

caffeinate -d : prevents display turning off, useful if you want to look at display without moving mouse.

replies(9): >>42058131 #>>42059558 #>>42059666 #>>42060870 #>>42062814 #>>42064032 #>>42068484 #>>42068855 #>>42069659 #
wwader ◴[] No.42058131[source]
open -a is nice, i use it with alias, ex:

  alias qt='open -a "quicktime player"'
  alias vlc='open -a "vlc"'
replies(1): >>42064357 #
FabHK ◴[] No.42064357[source]
At least for me (I've installed vlc via homebrew), there is a vlc binary in the PATH, and I can just vlc <filename>
replies(1): >>42066842 #
1. qrios ◴[] No.42066842{3}[source]
The point here is to open a document with an app not assigned as default for the given mime-type by file name extension.