开发者

Apple Script + Shell Script: How do I convert this shell script to apple script?

开发者 https://www.devze.com 2023-02-02 18:05 出处:网络
cd ~/Library/Application\\ Support/minecraft/; if [ -d \'rezcraft_bin\' ] then echo \"backing up sanguine, switching to rezcraft\"
cd ~/Library/Application\ Support/minecraft/;

if [ -d 'rezcraft_bin' ]
    then
        echo "backing up sanguine, switching to rezcraft"
        mv 'bin' 'sa开发者_开发知识库nguine_bin';
        mv 'rezcraft_bin' 'bin';
    else
        echo "backing up rezcraft, switching to sanguine"
        mv 'bin' 'rezcraft_bin';
        mv 'sanguine_bin' 'bin';        
fi
exit

like, I maybe a tutorial will help, idk.


Simple: do shell script "echo Hello World"

0

精彩评论

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