title: Localized menu bar item strings in iTunes
body: <p>The following code will disable shuffle mode in iTunes:</p>
  
  <pre><code>tell application "System Events"
      tell process "iTunes"
          click menu item "Off" of menu 1 of menu item "Shuffle" of menu 1 of menu bar item "Controls" of menu bar 1
      end tell
  end tell
  </code></pre>
  
  <p>However it only works if the system language is English.
  I would prefer not to use indices, so I tried using <code>localized string of</code> on <code>"Off"</code>, <code>"Shuffle"</code> and <code>"Controls"</code>, but it doesn't seem to work.</p>
  
  <p>Test code:</p>
  
  <pre><code>tell application "iTunes" to get localized string of "Shuffle"
  </code></pre>
  
  <p>Is there another way of getting the localized string or at least avoid having to hardcode the menu bar item indices?</p>