In order to acess music faster just create playlists.. If youre using iTUnes like me to manage your musik you might want to keep your current playlists. So i made a small workaround.
U need:
- The path of your iTunes Library: don´t foget the space between iTunes Music
- the destination
- iTunesExport
Remember to place iTunesExport to your favourite directory and modify the
path!
mount volume "smb://Mede8er" as user name "" with password ""
set targetPath to "/Users/janwrede/Music/iTunes/iTunes Music/Music"
do shell script "rsync -av " & quoted form of (POSIX path of targetPath) & " /Volumes/Mede8er/iTunes/Music/ "
do shell script "cd /Users/janwrede/Music/iTunesExport ; java -jar -mx1024m itunesexport.jar -outputDir=Music/ -fileTypes=ALL -includeDisabled -musicPath=/Volumes/Mede8er/iTunes"
outputDir=Music is a relative Path! Mede8er only accepts realtive Pathes. Otherwise there will be a "file not exists" exeception.
Remember that DRM is not supported by Mede8er!
v. 1.2 (see below)
set volumePath to "smb://mede8er/HDD1"
--path to mountable device
set targetDirectory to "/Volumes/HDD1/iTunes"
--where to store the library within the device?
set source to "/Users/janwrede/Music/iTunes/iTunes Music/"
--where is your "Music" Folder of iTunes stored?
set transferePodcasts to true
--create a folder for/sync Podcasts?
mount volume "" & volumePath as user name ¬
"username" with password "passwort"
--sync
tell application "Terminal"
activate
--copies Music Folder into Target Directory
do script "rsync -av -delete " & quoted form of (source & "Music") & " " & quoted form of (targetDirectory)
--& " " to receive seperate '' '' single quoted parameters
if transferePodcasts then
--copies Podcasts Folder into Target Directory
do script "rsync -av -delete " & quoted form of (source & "Podcasts") & " " & quoted form of (targetDirectory) in window 1
end if
end tell
set iTunesExportDirectory to "/Users/janwrede/Music/iTunesExport"
set excludePlaylists to "playlist1ToExclude, playlist2..."
do shell script "cd /Volumes/mede8er/iTunes ; rm -f *.m3u"
tell application "Terminal"
activate
do script "echo start building playlists"
do script "cd " & iTunesExportDirectory in window 1
-- do, ignore those in exludePlaylists
do script "java -jar -mx1024m itunesexport.jar -outputDir=" & quoted form of (POSIX path of targetDirectory) & " -fileTypes=ALL -includeDisabled -musicPath=Music/ -excludePlaylist=" & quoted form of (excludePlaylists) & "Podcasts" in window 1
end tell
for more information:
check my blog