Howto update Preview.app from the command line without losing focus on OSX ?
- by snies
Hello,
i want to update Preview.app in the background from the command line without losing focus of my current window. I know that i can use the following to open/update the view of a file, but than i lose focus to the Preview.app.
open -a Preview foo.pdf
I guess there might be some clever Apple Script commands to do so but so far i didn't find the right one.
Alternatively i would be interested into transfering the focus back to my current app directly after the update. I need this in order to update Preview.app's view of a pdf through a vi autocmd after i update the pdf according to changes in a tex file i am editing. Here is an example of what i want to achive but using Ubuntu and evince.