Skip to content

Instantly share code, notes, and snippets.

@roolo
Created January 28, 2012 22:41
Show Gist options
  • Select an option

  • Save roolo/1696051 to your computer and use it in GitHub Desktop.

Select an option

Save roolo/1696051 to your computer and use it in GitHub Desktop.
AppleScript
#
# Removes numbers with underscore (321321_) from artist of songs selected in iTunes
#
tell application "iTunes"
tell front browser window
set selected_items to selection
repeat with one_item in my selected_items
set artist of one_item to (do shell script "echo '" & (artist of one_item) & "' | sed 's/^[0-9]*_//g' ")
end repeat
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment