Skip to content

Instantly share code, notes, and snippets.

@annidy
Created May 20, 2014 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save annidy/e51757fad14a1150782f to your computer and use it in GitHub Desktop.
Save annidy/e51757fad14a1150782f to your computer and use it in GitHub Desktop.
Illustrator Mac 中文版启动修复
#!/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