• Copy Music files to USB flash drive

    From D.M. Procida@21:1/5 to All on Sat Jun 22 18:18:05 2024
    I have a 128GB USB flash drive, that I want to copy some of my files from
    Music onto (I use it in a a Volumio player).

    The most convenient thing would be to have a playlist in Music for the files I want on the flash drive, and have it synchronise the contents with that, much as I do with my iPhone.

    I don't know of a good way to do that though. (Funnily enough, there is still
    a Burn Playlist to Disc option, I don't suppose that gets used much nowadays.)

    Or perhaps I could do it using ChronoSync, though I think it would be more convenient to do it via Music.

    Suggestions?

    Daniele

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?J=C3=B6rg_Lorenz?=@21:1/5 to All on Sun Jun 23 08:47:18 2024
    Am 22.06.24 um 20:18 schrieb D.M. Procida:
    I have a 128GB USB flash drive, that I want to copy some of my files from Music onto (I use it in a a Volumio player).

    The most convenient thing would be to have a playlist in Music for the files I
    want on the flash drive, and have it synchronise the contents with that, much as I do with my iPhone.

    I don't know of a good way to do that though. (Funnily enough, there is still a Burn Playlist to Disc option, I don't suppose that gets used much nowadays.)

    Or perhaps I could do it using ChronoSync, though I think it would be more convenient to do it via Music.

    Suggestions?

    You won't like the answer but: Apple has other ways to play music in
    mind. USB is so far not the way to do it.

    This should fullfill your needs:
    Open Music-App - Activate all songs you want to export - Ablage (German interface) - Mediathek - Export

    Collect them on your Mac in a folder and copy them to the USB-drive.

    Daniele

    Jörg

    --
    "Ave Caesar! Morituri te salutant!"

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John@21:1/5 to daniele-at-vurt-dot-org@invalid.com on Sun Jun 23 12:06:53 2024
    On 22 Jun 2024 18:18:05 GMT, D.M. Procida
    <daniele-at-vurt-dot-org@invalid.com> wrote:

    I have a 128GB USB flash drive, that I want to copy some of my files from >Music onto (I use it in a a Volumio player).

    The most convenient thing would be to have a playlist in Music for the files I >want on the flash drive, and have it synchronise the contents with that, much >as I do with my iPhone.

    I don't know of a good way to do that though. (Funnily enough, there is still >a Burn Playlist to Disc option, I don't suppose that gets used much nowadays.)

    Can you "Burn to disc" to a USB drive instead of an optical? From
    what I remember, Burn creates a folder full of stuff that can be
    copied over to the USB with a single click. Or a drag.


    Or perhaps I could do it using ChronoSync, though I think it would be more >convenient to do it via Music.

    Is "Finder" a possibility?


    Suggestions?

    "Finder"?

    The Mac knows where the music is, it knows where the USB is, open two
    "Finder" windows and copy from one to the other?

    Or am I missing something obvious again?

    J.


    Daniele

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From D.M. Procida@21:1/5 to John on Sun Jun 23 17:49:45 2024
    On 23 Jun 2024 at 12:06:53 BST, "John" <Man@the.keyboard> wrote:

    On 22 Jun 2024 18:18:05 GMT, D.M. Procida <daniele-at-vurt-dot-org@invalid.com> wrote:

    I have a 128GB USB flash drive, that I want to copy some of my files from
    Music onto (I use it in a a Volumio player).

    The most convenient thing would be to have a playlist in Music for the files I
    want on the flash drive, and have it synchronise the contents with that, much
    as I do with my iPhone.

    I don't know of a good way to do that though. (Funnily enough, there is still
    a Burn Playlist to Disc option, I don't suppose that gets used much nowadays.)

    Can you "Burn to disc" to a USB drive instead of an optical? From
    what I remember, Burn creates a folder full of stuff that can be
    copied over to the USB with a single click. Or a drag.

    No, it really does want to create an audio (or other) disk.

    Suggestions?

    "Finder"?

    The Mac knows where the music is, it knows where the USB is, open two "Finder" windows and copy from one to the other?

    Or am I missing something obvious again?

    I only want to copy some of the files, and there are several thousand of them to choose from, each time. It's not manageable in the Finder.

    Daniele

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tyrone@21:1/5 to daniele-at-vurt-dot-org@invalid.com on Mon Jun 24 23:33:31 2024
    On Jun 23, 2024 at 1:49:45 PM EDT, "D.M. Procida" <daniele-at-vurt-dot-org@invalid.com> wrote:

    I only want to copy some of the files, and there are several thousand of them to choose from, each time. It's not manageable in the Finder.

    How is moving/copying files "not manageable in the Finder"? That's what
    Finder is for. Sort the files by name and scroll until you find the files you want.

    If you have several thousand files in a single folder it will take some time.
    But it is certainly manageable. How is creating a playlist any faster? You still have to find the files to add them to the list.

    You would have been done by now if you started yesterday, instead of asking
    how to do it.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Graham J@21:1/5 to Tyrone on Tue Jun 25 07:59:16 2024
    Tyrone wrote:
    On Jun 23, 2024 at 1:49:45 PM EDT, "D.M. Procida" <daniele-at-vurt-dot-org@invalid.com> wrote:

    I only want to copy some of the files, and there are several thousand of them
    to choose from, each time. It's not manageable in the Finder.

    How is moving/copying files "not manageable in the Finder"? That's what Finder is for. Sort the files by name and scroll until you find the files you want.

    If you have several thousand files in a single folder it will take some time.
    But it is certainly manageable. How is creating a playlist any faster? You still have to find the files to add them to the list.

    You would have been done by now if you started yesterday, instead of asking how to do it.


    The key issue is "each time".


    You create a playlist once - and yes, it might take time. You might
    edit it - add a few, take away a few items - does not take long.

    It's one click to invoke it.

    What is so wrong about wanting to use the playlist to copy the files?


    --
    Graham J

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Graeme Wall@21:1/5 to Graham J on Tue Jun 25 08:40:42 2024
    On 25/06/2024 07:59, Graham J wrote:
    Tyrone wrote:
    On Jun 23, 2024 at 1:49:45 PM EDT, "D.M. Procida"
    <daniele-at-vurt-dot-org@invalid.com> wrote:

    I only want to copy some of the files, and there are several thousand
    of them
    to choose from, each time. It's not manageable in the Finder.

    How is moving/copying files "not manageable in the Finder"?  That's what
    Finder is for. Sort the files by name and scroll until you find the
    files you
    want.

    If you have several thousand files in a single folder it will take
    some time.
      But it is certainly manageable. How is creating a playlist any
    faster? You
    still have to find the files to add them to the list.

    You would have been done by now if you started yesterday, instead of
    asking
    how to do it.


    The key issue is "each time".


    You create a playlist once - and yes, it might take time.  You might
    edit it - add a few, take away a few items - does not take long.

    It's one click to invoke it.

    What is so wrong about wanting to use the playlist to copy the files?



    Open playlist, select all, drag to USB drive. Done.
    --
    Graeme Wall
    This account not read.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bernd Froehlich@21:1/5 to Graham J on Tue Jun 25 09:52:53 2024
    On 25. Jun 2024 at 08:59:16 CEST, "Graham J" <nobody@nowhere.co.uk> wrote:

    You create a playlist once - and yes, it might take time. You might
    edit it - add a few, take away a few items - does not take long.

    It's one click to invoke it.

    What is so wrong about wanting to use the playlist to copy the files?

    It´s quite easy:

    Open your playlist in the Musik App, select all the files in the playlist,
    drag them to your USB-stick (or whereever you want).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John@21:1/5 to rail@greywall.demon.co.uk on Tue Jun 25 17:33:20 2024
    On Tue, 25 Jun 2024 08:40:42 +0100, Graeme Wall
    <rail@greywall.demon.co.uk> wrote:

    I only want to copy some of the files,

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tyrone@21:1/5 to Graham J on Tue Jun 25 17:47:03 2024
    On Jun 25, 2024 at 2:59:16 AM EDT, "Graham J" <nobody@nowhere.co.uk> wrote:

    Tyrone wrote:
    On Jun 23, 2024 at 1:49:45 PM EDT, "D.M. Procida"
    <daniele-at-vurt-dot-org@invalid.com> wrote:

    I only want to copy some of the files, and there are several thousand of them
    to choose from, each time. It's not manageable in the Finder.

    How is moving/copying files "not manageable in the Finder"? That's what
    Finder is for. Sort the files by name and scroll until you find the files you
    want.

    If you have several thousand files in a single folder it will take some time.
    But it is certainly manageable. How is creating a playlist any faster? You >> still have to find the files to add them to the list.

    You would have been done by now if you started yesterday, instead of asking >> how to do it.


    The key issue is "each time".

    What is meant by "each time"? Each time what? If he wants to copy the same files to multiple USB sticks then create a temp folder, copy the files ONCE to that folder then copy them to whatever USB sticks from the temp folder.

    This is not rocket science, folks.

    You create a playlist once - and yes, it might take time. You might
    edit it - add a few, take away a few items - does not take long.

    It's one click to invoke it.

    What is so wrong about wanting to use the playlist to copy the files?

    Nothing at all. But the same things can be done in Finder. The "playlist" is the temp folder. In both cases you find/choose/copy them once to the playlist/temp folder, then copy them all at once to the final destination(s).

    Again, it is easily manageable in the Finder.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Graeme Wall@21:1/5 to John on Tue Jun 25 19:29:35 2024
    On 25/06/2024 19:20, John wrote:
    On Tue, 25 Jun 2024 17:33:20 +0100, John <Man@the.keyboard> wrote:

    On Tue, 25 Jun 2024 08:40:42 +0100, Graeme Wall
    <rail@greywall.demon.co.uk> wrote:

    I only want to copy some of the files,

    Oh.

    Sorry.

    That was never meant to post. :)

    J.

    No worries :-)
    --
    Graeme Wall
    This account not read.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From D.M. Procida@21:1/5 to Bernd Froehlich on Tue Jun 25 18:33:24 2024
    On 25 Jun 2024 at 10:52:53 BST, "Bernd Froehlich" <befr@eaglesoft.de> wrote:

    On 25. Jun 2024 at 08:59:16 CEST, "Graham J" <nobody@nowhere.co.uk> wrote:

    You create a playlist once - and yes, it might take time. You might
    edit it - add a few, take away a few items - does not take long.

    It's one click to invoke it.

    What is so wrong about wanting to use the playlist to copy the files?

    It´s quite easy:

    Open your playlist in the Musik App, select all the files in the playlist, drag them to your USB-stick (or whereever you want).

    You had me all excited, but unfortunately that seems to copy only a flat list of files, whereas I want to copy the files in their folder trees.

    Daniele

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From D.M. Procida@21:1/5 to Tyrone on Tue Jun 25 18:29:52 2024
    On 25 Jun 2024 at 00:33:31 BST, "Tyrone" <none@none.none> wrote:

    On Jun 23, 2024 at 1:49:45 PM EDT, "D.M. Procida" <daniele-at-vurt-dot-org@invalid.com> wrote:

    I only want to copy some of the files, and there are several thousand of them
    to choose from, each time. It's not manageable in the Finder.

    How is moving/copying files "not manageable in the Finder"? That's what Finder is for. Sort the files by name and scroll until you find the files you want.

    If you have several thousand files in a single folder it will take some time.
    But it is certainly manageable. How is creating a playlist any faster? You still have to find the files to add them to the list.

    You would have been done by now if you started yesterday, instead of asking how to do it.

    Ha ha, imagine a tree of several thousand files, and you want to pull out different items from different parts of the tree - a few thousand of them. And then 10 months later, the source tree has changed somewhat, but you want to update the destination with the changes. The Finder's not going to be your friend.

    Daniele

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John@21:1/5 to John on Tue Jun 25 19:20:43 2024
    On Tue, 25 Jun 2024 17:33:20 +0100, John <Man@the.keyboard> wrote:

    On Tue, 25 Jun 2024 08:40:42 +0100, Graeme Wall
    <rail@greywall.demon.co.uk> wrote:

    I only want to copy some of the files,

    Oh.

    Sorry.

    That was never meant to post. :)

    J.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bruce Horrocks@21:1/5 to D.M. Procida on Wed Jun 26 11:42:20 2024
    On 25/06/2024 19:33, D.M. Procida wrote:
    On 25 Jun 2024 at 10:52:53 BST, "Bernd Froehlich" <befr@eaglesoft.de> wrote:

    On 25. Jun 2024 at 08:59:16 CEST, "Graham J" <nobody@nowhere.co.uk> wrote: >>
    You create a playlist once - and yes, it might take time. You might
    edit it - add a few, take away a few items - does not take long.

    It's one click to invoke it.

    What is so wrong about wanting to use the playlist to copy the files?

    It´s quite easy:

    Open your playlist in the Musik App, select all the files in the playlist, >> drag them to your USB-stick (or whereever you want).

    You had me all excited, but unfortunately that seems to copy only a flat list of files, whereas I want to copy the files in their folder trees.

    Daniele

    Try the following AppleScript:

    -- start
    use AppleScript version "2.4" -- Yosemite (10.10) or later
    use scripting additions

    set playlistName to "MyPlaylist"
    set srcPathToStrip to "/Users/bruce/Music/Music/Media.localized/Music"
    set dstPathtoAdd to "/Volumes/FlashDrive"
    set filesList to "/Users/bruce/Desktop/music_to_copy.txt"

    tell application "Music"
    set thePlaylist to user playlist playlistName
    set thePlaylistTracks to file tracks of thePlaylist
    repeat with aTrack in thePlaylistTracks
    set aliasPath to location of aTrack
    set posixPath to POSIX path of aliasPath
    do shell script "echo \\'" & posixPath & "\\' >> " & filesList
    end repeat
    end tell
    -- end

    Change the values of the variables at the beginning to values
    appropriate to you.

    Then run it and it should (assuming your thousands of tracks don't crash
    it!) create a text file on the desktop listing the full source path of
    each track that is in the playlist.

    You can then use the rsync command to do the copy onto the flash card
    using the syntax:

    $ rsync -v --include-from=./music_to_copy.txt / /Volumes/flash_card_name

    Note the / (i.e. root directory) after music_to_copy.txt - this is
    because the filenames in the music_to_copy are treated as relative to
    this directory. And since they are full paths they relative to root.

    I don't use Music much so only tested with a 2 track play list. rsync
    bit not tested but should be straightforward as there is a --dry-run
    option that tells you what it would do without actually doing it.

    HTH
    --
    Bruce Horrocks
    Surrey, England

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bruce Horrocks@21:1/5 to All on Sat Jun 29 15:41:12 2024
    Slight tweak (tracks with brackets in their titles didn't copy):

    -- start Applescript
    use AppleScript version "2.4" -- Yosemite (10.10) or later
    use scripting additions

    set playlistName to "MyPlaylist"
    set filesList to "/Users/bruce/Desktop/music_to_copy.txt"

    tell application "Music"
    set thePlaylist to user playlist playlistName
    set thePlaylistTracks to file tracks of thePlaylist
    do shell script "cat /dev/null > " & filesList
    repeat with aTrack in thePlaylistTracks
    set aliasPath to location of aTrack
    set posixPath to POSIX path of aliasPath
    do shell script "echo " & quoted form of posixPath & " >> " & filesList
    end repeat
    end tell

    -- After running, sync using the command:
    -- $ rsync -v --files-from=./music_to_copy.txt / /Volumes/flash_card_name

    -- stop AppleScript

    --
    Bruce Horrocks
    Surrey, England

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From D.M. Procida@21:1/5 to Bruce Horrocks on Sat Jun 29 21:41:27 2024
    On 29 Jun 2024 at 15:41:12 BST, "Bruce Horrocks" <07.013@scorecrow.com> wrote:

    Slight tweak (tracks with brackets in their titles didn't copy):

    -- start Applescript
    use AppleScript version "2.4" -- Yosemite (10.10) or later
    use scripting additions

    set playlistName to "MyPlaylist"
    set filesList to "/Users/bruce/Desktop/music_to_copy.txt"

    tell application "Music"
    set thePlaylist to user playlist playlistName
    set thePlaylistTracks to file tracks of thePlaylist
    do shell script "cat /dev/null > " & filesList
    repeat with aTrack in thePlaylistTracks
    set aliasPath to location of aTrack
    set posixPath to POSIX path of aliasPath
    do shell script "echo " & quoted form of posixPath & " >> " & filesList
    end repeat
    end tell

    -- After running, sync using the command:
    -- $ rsync -v --files-from=./music_to_copy.txt / /Volumes/flash_card_name

    -- stop AppleScript

    Thanks for taking all the trouble over this. Something is not quite right though.

    It crashes after 110 or so tracks with an: error "Can’t get POSIX path of missing value." number -1728 from POSIX path of missing value.

    More weirdly, although playlistName needs to be an actual playlist, I can't work out where it's getting the tracks from - not the named playlist, that's clear enough.

    Daniele

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bruce Horrocks@21:1/5 to D.M. Procida on Mon Jul 1 20:13:13 2024
    On 29/06/2024 22:41, D.M. Procida wrote:
    On 29 Jun 2024 at 15:41:12 BST, "Bruce Horrocks" <07.013@scorecrow.com> wrote:


    Thanks for taking all the trouble over this. Something is not quite right though.

    It crashes after 110 or so tracks with an: error "Can’t get POSIX path of missing value." number -1728 from POSIX path of missing value.

    More weirdly, although playlistName needs to be an actual playlist, I can't work out where it's getting the tracks from - not the named playlist, that's clear enough.

    Error -1728 is a file not found error which implies that the playlist
    contains a track which has since been moved, deleted or renamed.

    I've no idea why the files listed don't appear to be from the playlist selected. I've changed the version below to include the name of the
    track in the music_to_copy file on the line above each filename which
    might help you decipher what's happening.

    Be careful of the single quotes in the echo statements, especially where
    the wrap has chopped the lines.


    -- start
    use AppleScript version "2.4" -- Yosemite (10.10) or later
    use scripting additions

    set playlistName to "MyPlaylist"
    set filesList to "/Users/bruce/Desktop/music_to_copy.txt"

    tell application "Music"
    set thePlaylist to user playlist playlistName
    set thePlaylistTracks to file tracks of thePlaylist
    do shell script "echo '# Playlist: " & (name of thePlaylist) & "' > " & filesList
    repeat with aTrack in thePlaylistTracks
    try
    set aliasPath to location of aTrack
    set posixPath to POSIX path of aliasPath
    do shell script "echo '# " & (name of aTrack) & "' >> " & filesList
    do shell script "echo " & quoted form of posixPath & " >> " & filesList
    on error errMsg number errNum
    do shell script "echo # error: " & errMsg & " >> " & filesList
    end try
    end repeat
    end tell
    -- stop

    Lastly I assume the tracks you are trying to sync are CDs/files that
    you've ripped yourself? If they are streamed then I'm not sure what
    AppleScript makes of them as I don't have any myself to test with.

    Regards,
    --
    Bruce Horrocks
    Surrey, England

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)