Doesn't seem to work for me. I'm pretty sure I followed the directions as best as possible. Here's an error I get when I run sync.cmd:
D:\Users\blazemonkey\Desktop\kompot-foo-tunes-abddee0>cscript foo-tunes.js
Microsoft ® Windows Script Host Version 5.8
Copyright © Microsoft Corporation. All rights reserved.
D:\Users\blazemonkey\Desktop\kompot-foo-tunes-abddee0\foo-tunes.js(28, 1) Micros
oft JScript runtime error: Bad file name or number
Here's the user definable content in the foo-tunes.js file:
file = new ActiveXObject("Scripting.FileSystemObject");
eval(file.OpenTextFile("lib/libraries.js", 1).ReadAll());
eval(file.OpenTextFile("inc/includes.js", 1).ReadAll());
foobar2000Path = "C:\\Program Files (x86)\\foobar2000\\foobar2000.exe";
musicTrackedPath = "E:\\iTunesSync\\music-iphone\\";
musicNotTrackedPath = "E:\\iTunesSync\\music-iphone-not-tracked\\";
copyCommandName = "Copy: iTunesSync";
allowedMusicTypes = new Hashtable();
allowedMusicTypes.put("mp3", "");
allowedMusicTypes.put("m4a", "");
tagMappings = ""
// to be correctly sorted within artist view and within album view
+ '"FORMAT:ALBUMSORTORDER:%album artist% %date%";'
// for compilations to appear in `compilations` section
+ '"FORMAT:ITUNESCOMPILATION:$if($stricmp($meta(album artist),various artists),1,)";'
;