开发者

Is there a scripting tool for Mac?

Is there a tool for Mac OS like Windows VBScript?

I want to write some script which generates开发者_JAVA技巧 folders automatically and copy & paste files according to input.


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.


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 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:

do shell script ""

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜