내 아이튠즈 아티스트 및 장르 목록을 내 라이브러리에서 가져 오려고합니다. AppleScript는 일부 작업에서 느려질 수 있으며 이러한 상황에서 나는 속도에 많은 타협을 할 수 없습니다. 내 코드에서 할 수있는 추가 리팩터링이 있습니까?AppleScript를 통해 고유 한 iTunes 아티스트 목록보기
tell application "iTunes"
-- Get all tracks
set all_tracks to shared tracks
-- Get all artists
set all_artists to {}
repeat with i from 1 to count items in all_tracks
set current_track to item i of all_tracks
set current_artist to genre of current_track
if current_artist is not equal to "" and current_artist is not in all_artists then
set end of all_artists to current_artist
end if
end repeat
log all_artists
end tell
난 그냥 잘 모르는 것 같아요 아이튠즈에서 아티스트 또는 장르의 목록을 얻을 수있는 쉬운 방법이 있어야합니다 같은 느낌 ...
DougScripts를 확인한 적이 있습니까? 그곳에는 많은 스크립트가 있습니다. 당신이 원한다면 구체적으로 하나가 있고, 선택하면 txt 파일로 내보낼 수 있습니다. 나는 지금 당장 그 이름을 기억할 수는 없지만 74GB의 음악을 빨리 만들었습니다. – Chilly