Advertisement
jonathanpb

itunesautoimport.vbs

Oct 8th, 2024
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VBScript 0.66 KB | Source Code | 0 0
  1. 'iTunes does not scan the Automatically Add to iTunes folder when it is running.
  2. 'This script can be run at regular intervals. There is no call to add a track to the library without conversion,
  3. 'But if you create a playlist with the contents of the folder, iTunes will import the files and move them to the library.
  4. 'The script then deletes the playlist created to trigger the import.
  5.  
  6. 'Replace .AddFile("PATH") with the correct path for your import folder.
  7.  
  8. Dim iTunesApp
  9. Set iTunesApp = WScript.CreateObject("iTunes.Application")
  10. Set List=iTunesApp.CreatePlaylist("zAutomatic")
  11. List.AddFile("\\nas\iTunes\iTunes Music\Automatically Add to iTunes")
  12. List.Delete()
  13.  
Tags: Script vbs itunes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement