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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.