[Mac OS X]iTunesの自動ローカライズ機能で日本語表記にされた「ジャンル」を修正するAppleScript
古い話で恐縮ですが、iTunesは7.6になってからジャンルを勝手に日本語表記にするようになり、人によっては気になっていたんじゃないでしょうか。
NihondoさんのTune-up iTunes 7.6に、この自動ローカライズ機能を無効にする機能が付いたので当てましたが、既にヤラレてしまった曲をいちいち手で直すのは面倒。
しばらく放っておいたのですが、修正するAppleScriptを書いてみました。
どーという内容ではありませんが、置いておきます。
set gl to {{"オルタナティブ", "Alternative"}, {"イージーリスニング", "Easy Listening"}}
set gl to gl & {{"ニューエイジ", "New Age"}, {"サウンドトラック", "Soundtrack"}}
set gl to gl & {{"ロック", "Rock"}, {"フォーク", "Folk"}}
set gl to gl & {{"ポップ", "Pop"}, {"ニューエイジ", "New Age"}}
tell application "iTunes"
repeat with i in gl
if ((count of (every track of library playlist 1 of source 1 where genre is (item 1 of i))) > 0) then
set (genre of every track of library playlist 1 of source 1 where genre is item 1 of i) to item 2 of i
end if
end repeat
end tell
« [iPod touch]iPod touch 1.1.4のJailbreak後に発生するトラブルを回避 | Main | [iPod touch]Cydia環境用Cron »


Recent Comments