Running script every time a file is written

2 views (last 30 days)
I have a script that edits the contents of a .bib file generated by an Mendeley. How can I get this script to automatically run every time the .bib file is re-written by Mendeley?

Answers (1)

Walter Roberson
Walter Roberson on 20 Jul 2015
  2 Comments
Confused
Confused on 20 Jul 2015
Edited: Confused on 20 Jul 2015
Hello Walter,
The file I am interested in is references.bib. Mendeley will edit this file and save it as references.bib. Because no new file has been added to the directory your answer returns 'No new files' and so does not detect that a file has been edited as I would like it to.
Walter Roberson
Walter Roberson on 20 Jul 2015
So instead of making the directory length persistent, you make the modification time persistent, and you compare the current modification time for the file you want.

Sign in to comment.

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!