有 Mac 版的脚本工具吗?
有没有像 Windows VBScript 一样适用于 Mac OS 的工具?
我想编写一些自动生成文件夹并复制和复制的脚本。根据输入粘贴文件。
Is there a tool for Mac OS like Windows VBScript?
I want to write some script which generates folders automatically and copy & paste files according to input.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它称为 AppleScript...
但是
python 也是 OSX 附带的另一种选择,它具有文件系统工具,并且可能最流行的是,OSX 的终端是 bash,因此大多数 bash shell 脚本也适用于 OSX。
It's called AppleScript...
BUT
python is also another option that comes packed with OSX that has filesystem tools, and probably most popularly, OSX's terminal is bash, so most bash shell scripts will also work with OSX.
Automator 是一个创建自动化任务的工具。它充满了开箱即用的有用的东西,并且使用起来既简单又有趣。
There is Automator, a tool to create automated tasks. It's quite packed with useful stuff out of the box and easy and fun to use.
Apple-script 可能就是您正在寻找的。某些应用程序对 Apple 脚本有广泛的支持,无论是否由 Apple 开发。 Apple-script 还可以使用以下
命令运行 shell 脚本。在 Apple 脚本编辑器中,有用于文件夹操作的模板。 Apple 脚本也可以另存为应用程序。我用它来启动命令行程序(例如:Andriod SDK)
您还可以编写一个shell脚本并将其重命名为*.command,以便可以双击执行
Apple-script is probably what you're looking for. Some applications have extensive support for Apple-script, whether made by Apple or not. Apple-script can also run shell scripts with the:
command. In the Apple-script Editor there are templates for folder manipulation. Apple-scripts can also be saved as Applications. I use this for launching command-line programs (Ex: Andriod SDK)
You can also write a shell script and rename it *.command so it can be double-clicked to execute