Skip to content

Instantly share code, notes, and snippets.

@titancode
Created July 16, 2011 07:28
Show Gist options
  • Select an option

  • Save titancode/1086104 to your computer and use it in GitHub Desktop.

Select an option

Save titancode/1086104 to your computer and use it in GitHub Desktop.
An AppleScript for automatically switching your iTunes Store accounts between countries.
tell application "System Events"
tell process "iTunes"
set frontmost to true
try
click menu item "Sign Out" of menu "Store" of menu bar item "Store" of menu bar 1
end try
delay 1
click menu item "Sign In" of menu "Store" of menu bar item "Store" of menu bar 1
delay 1
keystroke return
keystroke "your account's first letter"
keystroke "the rest part of your account"
keystroke tab
keystroke "your password"
keystroke return
delay 4
keystroke return
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment