Created
November 8, 2008 02:41
-
-
Save kana/23013 to your computer and use it in GitHub Desktop.
This file contains 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
to upper(aString) | |
set UPPERCASE to "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
set theResult to characters of aString | |
repeat with aChar in theResult | |
set i to offset of aChar in UPPERCASE | |
if i is not 0 then | |
set contents of aChar to character i of UPPERCASE | |
end if | |
end repeat | |
return theResult as text | |
end upper | |
tell application "iTunes" | |
repeat with aTrack in (a reference to selection) | |
set anArtist to artist of aTrack | |
set artist of aTrack to my upper(anArtist) | |
end repeat | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment