Skip to content

Instantly share code, notes, and snippets.

@kowata
Last active August 29, 2015 13:57
Show Gist options
  • Save kowata/9756203 to your computer and use it in GitHub Desktop.
Save kowata/9756203 to your computer and use it in GitHub Desktop.
iTunes の曲名にアーティスト名を付記する AppleScript
-- ========================================
-- アーティスト名をトラック名に加える
-- トラック名を "AC/DC - Back In Black" のようにできる
-- 参考:slowly but surely (http://d.hatena.ne.jp/hrc/20080620/1214096524)
-- ========================================
tell application "iTunes"
set theTracks to selection of front browser window
set theTracksRef to a reference to theTracks
repeat with i from 1 to count of theTracksRef
set theTrack to item i of my theTracksRef
set name of theTrack to artist of theTrack & " - " & name of theTrack
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment