清单3提供了一个简单的样例脚本,它可以接收3个事件:startup,启动作业;shutdown和runlevel - 3,停止作业。
Listing 3 provides a simple example script that accepts three events: startup, which causes the job to start, or shutdown and runlevel-3, which cause the job to stop.
苹果公司的Mac平台,在很多年之前就拥有了自己的AppleScript技术,最近又添加了Automator,使用户可以在脚本代码中自定义实现特定功能的actions动作,让程序在某些事件发生时自动处理那些令人厌烦的重复性作业任务。
The Mac has had AppleScript for many years, and recently added Automator so users could define actions that are performed at certain events to automate boring, repetitive tasks.
应用推荐