This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Equality | |
// equal :: a -> b -> boolean | |
function equal (a, b) { | |
if (typeof a !== typeof b) { | |
return false; | |
} | |
if (a === b) { | |
return true; | |
} | |
if (Array.isArray(a) && Array.isArray(b)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Fix albums display order | |
-- Changes the "sort album" field, to ensure that albums get displayed in chronological order on iPods. | |
-- CC-BY-NC 2011, Jean-Karim Bockstael, | |
tell application "iTunes" | |
-- input checking | |
if selection is {} then | |
display dialog "You must select at least a track" | |
return | |
else | |
set selected_tracks to selection |