我有这个 AppleScript,它返回 iTunes 中当前正在播放的艺术家的名字。不幸的是,如果艺术家姓名包含特殊字符,如 ú,则会输出奇怪的字符。我怎样才能解决这个问题?
tell application "iTunes"
if player state is playing then
try
set myTrack to artist of current track
on error
return ""
end try
return myTrack
end if
end tell