09/03/27 09:50:31 0TmzHn2cP
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 "置換前の文字列"
set aList to every text item of aText
set AppleScript's text item delimiters to "置換後の文字列"
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