Nightly自動取得&文字化けパッチ用スクリプト まとめ
1. 【
>>195改】
~/Library/Scripts/chimeraupdate
--- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< ---
do shell script "sh ~/Documents/chimeraud.sh"
display dialog "Update Completed."
--- >8 --- >8 --- >8 --- >8 --- >8 --- >8 --- >8 ---
をスクリプトエディタでコンパイルドにしてスクリプトメニューに登録。
Terminalを起動し
% cat > ~/Documents/chimeraud.shを入力
その後↓を入力しctrl + D でOK。
~/Documents/chimeraud.sh
--- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< ---
#!/bin/sh
cd ~/Desktop
curl -O
http://ftp.mozilla.org/pub/chimera/nightly/latest-trunk/Chimera.dmg.gz gunzip Chimera.dmg.gz
hdiutil mount Chimera.dmg
cp -R /Volumes/Chimera/Navigator.app /Applications/
cd /Applications/Navigator.app/Contents/MacOS/defaults/pref/
mv all-chimera.js all-chimera.bak
sed 's/pref(^\"intl.charset.detector\"/\/\/\ pref(\"intl.charset.detector\"/' < all-chimera.bak > all-chimera.js
mkdir /Applications/Navigator.app/Contents/Resources/Japanese.lproj
hdiutil unmount /Volumes/Chimera
cd ~/Desktop
rm Chimera.dmg
--- >8 --- >8 --- >8 --- >8 --- >8 --- >8 --- >8 ---
(\マークはTerminalではバックスラッシュ)