0

OS: OS X Lion

Shell: zsh

I'd like to automatically launch/open a file when it changes.

Background: i'm working on a windows vm, generating pdfs. Syncing via dropbox and when a file changes on dropbox (this is gets done in the windows vm) I'd like to open that pdf automatically.

Any hints/suggestions?

Thanks

1 Answer 1

1

You can use launchd for that purpose. Launchd can be configured to automatically launch a program when a file path is modified.

Source: https://stackoverflow.com/questions/1515730/is-there-a-command-like-watch-or-inotifywait-on-the-mac

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .