简体   繁体   English

OSX计划任务/脚本

[英]OSX Scheduled Task / Script

How would I write a scheduled task on OSX to watch for a specific file and then have the scheduler rename it with an id? 我将如何在OSX上编写计划任务以监视特定文件,然后让计划程序将其重命名为ID?

Another program current creates a file, but it keeps getting overwritten. 当前有另一个程序创建了一个文件,但是它一直被覆盖。 I don't have access to the other program's source code. 我无权访问其他程序的源代码。

I'm a total noob in non-web scripting. 我完全是非网络脚本方面的菜鸟。 Thanks in advance for the help. 先谢谢您的帮助。

Check out Folder Actions and Automator. 检出Folder Actions和Automator。 Together they can be pretty powerful. 他们在一起可以非常强大。 There are lots of blogs out there describing their use. 有很多博客描述了它们的用法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM