Running script every time a file is written

2 次查看(过去 30 天)
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?

回答(1 个)

Walter Roberson
Walter Roberson 2015-7-20
  2 个评论
Confused
Confused 2015-7-20
编辑:Confused 2015-7-20
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 2015-7-20
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Standard File Formats 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by