Created
July 16, 2011 07:28
-
-
Save titancode/1086104 to your computer and use it in GitHub Desktop.
An AppleScript for automatically switching your iTunes Store accounts between countries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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