home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 233 / Computer Shopper 233 / ComputerShopperDVD233.iso / Full / Mobile Master / MobileMasterInst.exe / convtomp3.js < prev    next >
Encoding:
Text File  |  2006-08-14  |  396 b   |  18 lines

  1. args = WScript.Arguments;
  2.  
  3. if  (args.length != 0)
  4. {
  5.     var iTunesApp = WScript.CreateObject("iTunes.Application");
  6.     var  fso = new ActiveXObject("Scripting.FileSystemObject");
  7.     fil = new Array();
  8.     for (i = 0; i < args.length; i++)
  9.     {
  10.          fil.push(fso.GetAbsolutePathName(args(i)));
  11.     }
  12.     iTunesApp.ConvertFiles(fil);
  13. }
  14. else
  15. {
  16.     WScript.Echo("Usage: encodeAAC.js <filename.wav>");
  17. }
  18.