Skip to content

Instantly share code, notes, and snippets.

@kana
Created November 8, 2008 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kana/23013 to your computer and use it in GitHub Desktop.
Save kana/23013 to your computer and use it in GitHub Desktop.
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