tell application "iTunes" if selection of front browser window is {} then display alert "Select track(s) to process." as critical buttons "Cancel" else set TID to AppleScript's text item delimiters set FI to fixed indexing set fixed indexing to true set selectedTracks to selection try repeat with aTrack in selectedTracks tell aTrack set aText to lyrics as string set AppleScript's text item delimiters to "文字列A" set aList to every text item of aText set AppleScript's text item delimiters to "文字列B" set aText to aList as string set lyrics to aText end tell end repeat end try set fixed indexing to FI set AppleScript's text item delimiters to TID display alert "Process was completed." as critical buttons "OK" end if end tell