Created
May 20, 2014 02:29
-
-
Save annidy/e51757fad14a1150782f to your computer and use it in GitHub Desktop.
Illustrator Mac 中文版启动修复
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ruby | |
APP = "/Applications/Adobe Illustrator CS6/Adobe Illustrator.app/Contents/MacOS/Adobe Illustrator" | |
if File.size(APP) > 4096 | |
print "Rename" | |
NEWAPP = File.dirname(APP) + '/AICS6' | |
`mv "#{APP}" "#{NEWAPP}"` | |
end | |
f = File.new(APP, File::CREAT|File::TRUNC|File::RDWR, 0777) | |
f.write <<-EOS | |
#!/bin/bash | |
BASEDIR=$(cd "$(dirname "$0")"; pwd) | |
"$BASEDIR/AICS6" -AppleLanguages '("zh-Hans")' | |
EOS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment