Apple Script + Shell Script:如何将此shell脚本转换为Apple脚本?

时间:2011-01-03 00:40:42

标签: shell applescript

cd ~/Library/Application\ Support/minecraft/;

if [ -d 'rezcraft_bin' ]
    then
        echo "backing up sanguine, switching to rezcraft"
        mv 'bin' 'sanguine_bin';
        mv 'rezcraft_bin' 'bin';
    else
        echo "backing up rezcraft, switching to sanguine"
        mv 'bin' 'rezcraft_bin';
        mv 'sanguine_bin' 'bin';        
fi
exit

喜欢,我可能会帮助教程,idk。

1 个答案:

答案 0 :(得分:0)

简单:do shell script "echo Hello World"