How can i update Preview.app from the command line without loosing focus on OSX ?
Posted
by snies
on Super User
See other posts from Super User
or by snies
Published on 2010-03-24T17:22:03Z
Indexed on
2010/03/24
17:23 UTC
Read the original article
Hit count: 311
Hello,
i want to update Preview.app in the background from the command line without loosing focus of my current window. I know that i can use the following to open/update the view of a file, but than i loose 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.
© Super User or respective owner